Skip to content

Commit 3b96fa4

Browse files
committed
Disable publishing to snapshot repository
1 parent dc6f9b4 commit 3b96fa4

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

build.gradle.kts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,10 @@ group = "net.ornithemc"
99
val env: Map<String, String> = System.getenv()
1010

1111
val versionRegex: Pattern = Pattern.compile("version = \"(.*)\"")
12-
version = if (env["SNAPSHOTS_URL"] != null) {
13-
"0-SNAPSHOT"
14-
} else {
15-
file("Cargo.toml").useLines {
16-
it.map { versionRegex.matcher(it) }.first {
17-
18-
it.matches()
19-
}.group(1)
20-
}
12+
version = file("Cargo.toml").useLines {
13+
it.map { versionRegex.matcher(it) }.first {
14+
it.matches()
15+
}.group(1)
2116
}
2217

2318
publishing {
@@ -64,7 +59,7 @@ publishing {
6459
}
6560
}
6661

67-
if (env["SNAPSHOTS_URL"] != null) {
62+
/*if (env["SNAPSHOTS_URL"] != null) {
6863
repositories.maven {
6964
name = "Snapshots"
7065
url = uri(env["SNAPSHOTS_URL"]!!)
@@ -74,7 +69,7 @@ publishing {
7469
password = env["SNAPSHOTS_PASSWORD"]
7570
}
7671
}
77-
}
72+
}*/
7873
}
7974
}
8075

0 commit comments

Comments
 (0)