Skip to content

Commit a3874d8

Browse files
committed
Fix build.gradle always adding -SNAPSHOT to version
1 parent 2b0914a commit a3874d8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

build.gradle

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ plugins {
77
// Change java compatibility level to 23
88
sourceCompatibility = targetCompatibility = 23
99

10-
def snapshot = project.release ? "" : "-SNAPSHOT"
10+
def snapshot = project.release=="true" ? "" : "-SNAPSHOT"
1111
version = project.version+snapshot
1212
// Name, version and group for the project
13-
version = "1.3"
1413
group = "com.minecrafttas"
1514
archivesBaseName = "discombobulator"
1615

@@ -51,10 +50,6 @@ javadoc {
5150
options.addBooleanOption('Xdoclint:none', true)
5251
}
5352

54-
publishToMavenLocal {
55-
version = version + "-SNAPSHOT"
56-
}
57-
5853
publishing {
5954
repositories {
6055
maven {

0 commit comments

Comments
 (0)