13
0
geforkt von Mirrors/Velocity
Velocity/gradle/publish.gradle
2021-12-09 10:33:00 -08:00

14 Zeilen
401 B
Groovy

publishing {
repositories {
maven {
credentials(PasswordCredentials.class)
name = 'paper'
def base = 'https://papermc.io/repo/repository/maven'
def releasesRepoUrl = "$base-releases/"
def snapshotsRepoUrl = "$base-snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}