Skip to content

Commit 11824ed

Browse files
authored
build: define group and version in root build.gradle (#55)
Signed-off-by: Nicklas Lundin <[email protected]>
1 parent b8bb0d0 commit 11824ed

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

OpenFeature/build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ plugins {
88
kotlin("plugin.serialization") version "1.9.10"
99
}
1010

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

1513
android {
1614
namespace = "dev.openfeature.sdk"
@@ -51,7 +49,7 @@ android {
5149
publishing {
5250
publications {
5351
register<MavenPublication>("release") {
54-
groupId = "dev.openfeature"
52+
groupId = project.extra["groupId"].toString()
5553
artifactId = "kotlin-sdk"
5654
version = releaseVersion
5755

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ plugins {
55
id("org.jlleitschuh.gradle.ktlint").version("11.6.1").apply(true)
66
id("io.github.gradle-nexus.publish-plugin").version("1.3.0").apply(true)
77
}
8+
allprojects {
9+
extra["groupId"] = "dev.openfeature"
10+
// x-release-please-start-version
11+
ext["version"] = "0.0.3"
12+
// x-release-please-end
13+
}
14+
group = project.extra["groupId"].toString()
15+
version = project.extra["version"].toString()
816

917
nexusPublishing {
1018
this.repositories {

release-please-config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"versioning": "default",
99
"extra-files": [
1010
"README.md",
11+
"build.gradle.kts",
1112
"OpenFeature/build.gradle.kts"
1213
]
1314
}

0 commit comments

Comments
 (0)