From 5f0266b7254ffdc9fbba839eec71ff7f5780849f Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Thu, 1 Oct 2026 19:51:59 +0200 Subject: [PATCH] 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. --- .../kotlin/buildsrc/conventions/maven-publishing.gradle.kts | 1 - gradle.properties | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/buildsrc/conventions/maven-publishing.gradle.kts b/buildSrc/src/main/kotlin/buildsrc/conventions/maven-publishing.gradle.kts index fcd33c5..a58c515 100644 --- a/buildSrc/src/main/kotlin/buildsrc/conventions/maven-publishing.gradle.kts +++ b/buildSrc/src/main/kotlin/buildsrc/conventions/maven-publishing.gradle.kts @@ -9,7 +9,6 @@ plugins { } group = "dev.adamko.gradle" -version = "1.2.0-SNAPSHOT" val mavenPublishing = extensions.create(MavenPublishingSettings.EXTENSION_NAME, project) diff --git a/gradle.properties b/gradle.properties index 108e0f0..e9bb00f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,3 +7,5 @@ org.gradle.configuration-cache-problems=warn org.gradle.parallel=true org.gradle.welcome=never + +version=1.2.0-SNAPSHOT