2020-09-23 07:03:18 +02:00
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
credentials {
|
|
|
|
username System.getenv("NEXUS_USERNAME")
|
|
|
|
password System.getenv("NEXUS_PASSWORD")
|
|
|
|
}
|
|
|
|
|
|
|
|
name = 'velocity-nexus'
|
|
|
|
def base = 'https://nexus.velocitypowered.com/repository/velocity-artifacts'
|
2020-10-28 15:58:45 +01:00
|
|
|
def releasesRepoUrl = "$base-release/"
|
2020-09-23 07:03:18 +02:00
|
|
|
def snapshotsRepoUrl = "$base-snapshots/"
|
|
|
|
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|