1
0
mirror of https://github.com/GeyserMC/PackConverter.git synced 2026-01-03 22:16:16 +00:00

Update publishing conventions, or, attempt number vier

This commit is contained in:
onebeastchris
2025-08-13 01:53:53 +03:00
parent c624f20e29
commit a94c245ec3

View File

@@ -1,3 +1,5 @@
import java.net.URI
plugins {
`maven-publish` apply true
id("com.github.johnrengelman.shadow") apply false
@@ -5,11 +7,17 @@ plugins {
publishing {
repositories {
val repoName = if (project.version.toString().endsWith("SNAPSHOT")) "maven-snapshots" else "maven-releases"
maven("https://repo.opencollab.dev/${repoName}/") {
credentials.username = System.getenv("OPENCOLLAB_USERNAME")
credentials.password = System.getenv("OPENCOLLAB_PASSWORD")
name = "opencollab"
maven {
name = "geysermc"
url = URI.create(
when {
version.toString().endsWith("-SNAPSHOT") ->
"https://repo.opencollab.dev/maven-snapshots"
else ->
"https://repo.opencollab.dev/maven-releases"
}
)
credentials(PasswordCredentials::class.java)
}
}