diff --git a/build.gradle.kts b/build.gradle.kts index 793eeaa..34ec796 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -49,6 +49,9 @@ subprojects { if (project.hasProperty("newVersion")) { cmd.addAll(listOf("-v", project.properties["newVersion"].toString())) } + if (project.hasProperty("noCommit")) { + cmd.add("--no-commit") + } commandLine(*cmd.toTypedArray()) } diff --git a/scripts/versions.main.kts b/scripts/versions.main.kts index 4ef007a..1fd5a5f 100755 --- a/scripts/versions.main.kts +++ b/scripts/versions.main.kts @@ -49,8 +49,10 @@ while (!force) { setCurrentVersion(tagVersion) setVersionInDocs(tagVersion, projectName) - -runCommand("git", "commit", "-a", "-m", "Bump $projectName to version $tagVersion") +val noCommit = args.contains("--no-commit") +if (!noCommit) { + runCommand("git", "commit", "-a", "-m", "Bump $projectName to version $tagVersion") +} if (tagAndSnapshot) { runCommand("git", "tag", "$projectName-v$tagVersion")