File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,10 @@ group = "net.ornithemc"
99val env: Map <String , String > = System .getenv()
1010
1111val 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
2318publishing {
@@ -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
You can’t perform that action at this time.
0 commit comments