Skip to content

Commit d273c41

Browse files
committed
Actually fix publishing, prevent snapshots publishing to releases.
See f400431
1 parent 6723d52 commit d273c41

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed
Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import java.net.URI
2-
31
plugins {
42
id("mcprotocollib.base-conventions")
53
id("net.kyori.indra.publishing")
@@ -18,20 +16,3 @@ indra {
1816
}
1917
}
2018
}
21-
22-
publishing {
23-
repositories {
24-
maven {
25-
name = "geysermc"
26-
url = URI.create(
27-
when {
28-
project.version.toString().endsWith("-SNAPSHOT") ->
29-
"https://repo.opencollab.dev/maven-snapshots"
30-
else ->
31-
"https://repo.opencollab.dev/maven-releases"
32-
}
33-
)
34-
credentials(PasswordCredentials::class.java)
35-
}
36-
}
37-
}

protocol/build.gradle.kts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import java.net.URI
2+
13
plugins {
24
id("mcprotocollib.publish-conventions")
35
jacoco
@@ -51,3 +53,20 @@ tasks.jacocoTestReport {
5153
html.outputLocation = layout.buildDirectory.dir("jacocoHtml")
5254
}
5355
}
56+
57+
publishing {
58+
repositories {
59+
maven {
60+
name = "geysermc"
61+
url = URI.create(
62+
when {
63+
version.toString().endsWith("-SNAPSHOT") ->
64+
"https://repo.opencollab.dev/maven-snapshots"
65+
else ->
66+
"https://repo.opencollab.dev/maven-releases"
67+
}
68+
)
69+
credentials(PasswordCredentials::class.java)
70+
}
71+
}
72+
}

0 commit comments

Comments
 (0)