Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-26 16:12:50 +01:00
16 Zeilen
535 B
Groovy
16 Zeilen
535 B
Groovy
|
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'
|
||
|
def releasesRepoUrl = "$base-releases/"
|
||
|
def snapshotsRepoUrl = "$base-snapshots/"
|
||
|
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
||
|
}
|
||
|
}
|
||
|
}
|