2020-09-23 07:03:18 +02:00
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
maven {
|
2021-12-09 19:08:12 +01:00
|
|
|
credentials(PasswordCredentials.class)
|
2020-09-23 07:03:18 +02:00
|
|
|
|
2021-12-09 19:08:12 +01:00
|
|
|
name = 'paper'
|
2021-12-09 19:33:00 +01:00
|
|
|
def base = 'https://papermc.io/repo/repository/maven'
|
2021-12-09 19:08:12 +01:00
|
|
|
def releasesRepoUrl = "$base-releases/"
|
2020-09-23 07:03:18 +02:00
|
|
|
def snapshotsRepoUrl = "$base-snapshots/"
|
|
|
|
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
|
|
|
}
|
|
|
|
}
|
2021-12-09 19:08:12 +01:00
|
|
|
}
|