From a797b639e8bde9b5dab5c33f274891ad6f1b169f Mon Sep 17 00:00:00 2001 From: Kevin Cooney Date: Sun, 15 Feb 2026 14:35:35 -0800 Subject: [PATCH] Prevent publishing to Maven Central without updating the version --- buildSrc/src/main/groovy/publishing-conventions.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/buildSrc/src/main/groovy/publishing-conventions.gradle b/buildSrc/src/main/groovy/publishing-conventions.gradle index 3adba0ec..be0103d8 100644 --- a/buildSrc/src/main/groovy/publishing-conventions.gradle +++ b/buildSrc/src/main/groovy/publishing-conventions.gradle @@ -9,6 +9,7 @@ mavenPublishing { publishToMavenCentral() if (gradle.startParameter.taskNames.any { it.contains('MavenCentral') }) { + assert version != '2.0.0': 'Update the version before publishing to Maven Central' signAllPublications() }