Skip to content

Commit

Permalink
build: define group and version in root build.gradle (#55)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicklas Lundin <[email protected]>
  • Loading branch information
nicklasl authored Oct 15, 2023
1 parent b8bb0d0 commit 11824ed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 2 additions & 4 deletions OpenFeature/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ plugins {
kotlin("plugin.serialization") version "1.9.10"
}

// x-release-please-start-version
val releaseVersion = "0.0.3"
// x-release-please-end
val releaseVersion = project.extra["version"].toString()

android {
namespace = "dev.openfeature.sdk"
Expand Down Expand Up @@ -51,7 +49,7 @@ android {
publishing {
publications {
register<MavenPublication>("release") {
groupId = "dev.openfeature"
groupId = project.extra["groupId"].toString()
artifactId = "kotlin-sdk"
version = releaseVersion

Expand Down
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ plugins {
id("org.jlleitschuh.gradle.ktlint").version("11.6.1").apply(true)
id("io.github.gradle-nexus.publish-plugin").version("1.3.0").apply(true)
}
allprojects {
extra["groupId"] = "dev.openfeature"
// x-release-please-start-version
ext["version"] = "0.0.3"
// x-release-please-end
}
group = project.extra["groupId"].toString()
version = project.extra["version"].toString()

nexusPublishing {
this.repositories {
Expand Down
1 change: 1 addition & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"versioning": "default",
"extra-files": [
"README.md",
"build.gradle.kts",
"OpenFeature/build.gradle.kts"
]
}
Expand Down

0 comments on commit 11824ed

Please sign in to comment.