Skip to content

Commit c131d2b

Browse files
committed
Prevent publishing to Maven Central without updating the version
1 parent ef88644 commit c131d2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

buildSrc/src/main/groovy/publishing-conventions.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ plugins {
33
}
44

55
group = 'com.team2813.lib2813'
6-
version = "2.0.0"
6+
version = '2.0.0'
77

88
mavenPublishing {
99

1010
publishToMavenCentral()
1111
if (gradle.startParameter.taskNames.any { it.contains('MavenCentral') }) {
12-
signAllPublications()
12+
assert version != '2.0.0': 'Update the version before publishing to Maven Central'
1313
}
1414

1515
coordinates(

0 commit comments

Comments
 (0)