Skip to content

Commit

Permalink
WIP: publish the Gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mvicsokolova committed Jun 21, 2024
1 parent 2ff433e commit dd9c647
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions atomicfu-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
plugins {
id("kotlin-jvm-conventions")
id("java-gradle-plugin")
alias(libs.plugins.gradle.pluginPublish)
}

// Gradle plugin must be compiled targeting the same Kotlin version as used by Gradle
Expand Down Expand Up @@ -40,3 +41,22 @@ tasks.processResources {
expand("atomicfuVersion" to project.version)
}
}

signing {
// disable signing if private key isn't passed
isRequired = findProperty("libs.sign.key.private") != null
}

gradlePlugin {
website.set("https://github.com/Kotlin/kotlinx-atomicfu")
vcsUrl.set("https://github.com/Kotlin/kotlinx-atomicfu.git")

plugins {
create("Atomicfu") {
id = "org.jetbrains.kotlinx.atomicfu"
implementationClass = "kotlinx.atomicfu.plugin.gradle.AtomicFUGradlePlugin"
displayName = "Gradle plugin for kotlinx-atomicfu library"
description = "Enables efficient use of atomic operations in Kotlin multiplatform projects."
}
}
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ maven = "3.5.3"
maven-pluginTools = "3.5"
node-gradle = "3.1.1"
rhino = "1.7.10"
gradle-plugin-publish = "1.2.1"

[libraries]

Expand Down Expand Up @@ -51,4 +52,5 @@ maven = ["maven-core", "maven-pluginApi", "maven-pluginAnnotations"]
gradle-nodePlugin = { id = "com.github.node-gradle.node", version.ref = "node-gradle" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlinx-binaryCompatibilityValidator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version.ref = "kotlinx-binaryCompatibilityValidator"}
gradle-pluginPublish = { id = "com.gradle.plugin-publish", version.ref = "gradle-plugin-publish" }

0 comments on commit dd9c647

Please sign in to comment.