Skip to content

Commit ff18e16

Browse files
committed
Set project version in gradle.properties
Use `gradle.properties` for a consistent version across all subprojects. If the version is only set in the `publishing` convention then the root project won't get it. The version needs to be set consistently else the `isReleaseVersion` value is wrong on the root project, because the root project is the one that publishes via nmcp.
1 parent 58d6540 commit ff18e16

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎buildSrc/src/main/kotlin/buildsrc/conventions/maven-publishing.gradle.kts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ plugins {
99
}
1010

1111
group = "dev.adamko.gradle"
12-
version = "1.2.0-SNAPSHOT"
1312

1413
val mavenPublishing =
1514
extensions.create<MavenPublishingSettings>(MavenPublishingSettings.EXTENSION_NAME, project)

‎gradle.properties‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ org.gradle.configuration-cache-problems=warn
77

88
org.gradle.parallel=true
99
org.gradle.welcome=never
10+
11+
version=1.2.0-SNAPSHOT

0 commit comments

Comments
 (0)