From 25884a8fcee3c6ba1b3197085806a7cfc361ff67 Mon Sep 17 00:00:00 2001 From: Rohan Desai Date: Fri, 22 Dec 2023 13:00:54 -0800 Subject: [PATCH] increment the patch version when on branches prefixed with patch --- .../main/kotlin/responsive.java-common-conventions.gradle.kts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildSrc/src/main/kotlin/responsive.java-common-conventions.gradle.kts b/buildSrc/src/main/kotlin/responsive.java-common-conventions.gradle.kts index 348bd9e8d..af46b8cf5 100644 --- a/buildSrc/src/main/kotlin/responsive.java-common-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/responsive.java-common-conventions.gradle.kts @@ -67,6 +67,10 @@ allprojects { versionIncrementer("incrementMinor") + branchVersionIncrementer.putAll( mapOf( + "patch/.*" to "incrementPatch" + )) + snapshotCreator({ _, _ -> "-SNAPSHOT" }) ignoreUncommittedChanges.set(false) }