Skip to content

Commit 9f99311

Browse files
committed
chore: Configure Maven publication and add plugin badge to README
- Add `publishing` block to set artifactId for Maven publication. - Update README with a Gradle Plugin Portal badge for visibility.
1 parent 29c208e commit 9f99311

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Nucleus Native Access
22

3+
[![Gradle Plugin Portal](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Fplugins.gradle.org%2Fm2%2Fio%2Fgithub%2Fkdroidfilter%2Fnucleusnativeaccess%2Fio.github.kdroidfilter.nucleusnativeaccess.gradle.plugin%2Fmaven-metadata.xml&label=Gradle%20Plugin%20Portal)](https://plugins.gradle.org/plugin/io.github.kdroidfilter.nucleusnativeaccess)
4+
35
A Gradle plugin that lets you use **Kotlin/Native code directly from the JVM** as if it were a regular JVM library. Classes, methods, properties, enums, nullable types, companion objects, exception propagation, callbacks — everything is transparent to the JVM developer.
46

57
Under the hood, the plugin generates [FFM (Foreign Function & Memory API)](https://openjdk.org/jeps/454) bindings inspired by [swift-java](https://github.com/swiftlang/swift-java) and [swift-export-standalone](https://github.com/JetBrains/kotlin/tree/master/native/swift/swift-export-standalone).
@@ -44,7 +46,7 @@ pluginManagement {
4446
// build.gradle.kts
4547
plugins {
4648
kotlin("multiplatform") version "2.3.20"
47-
id("io.github.kdroidfilter.nucleusnativeaccess") version "<version>"
49+
id("io.github.kdroidfilter.nucleusnativeaccess") version "0.1.0"
4850
}
4951
```
5052

plugin-build/plugin/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.gradle.api.publish.maven.MavenPublication
2+
13
plugins {
24
kotlin("jvm")
35
`java-gradle-plugin`
@@ -38,6 +40,12 @@ gradlePlugin {
3840
vcsUrl.set(property("VCS_URL").toString())
3941
}
4042

43+
publishing {
44+
publications.withType<MavenPublication>().configureEach {
45+
artifactId = "nucleusnativeaccess"
46+
}
47+
}
48+
4149
tasks.register("setupPluginUploadFromEnvironment") {
4250
doLast {
4351
val key = System.getenv("GRADLE_PUBLISH_KEY")

0 commit comments

Comments
 (0)