geforkt von Mirrors/Velocity
14 Zeilen
402 B
Groovy
14 Zeilen
402 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
|
|
}
|
|
}
|
|
}
|