Point all new Maven artifact deploys to Nexus

This commit is contained in:
Andrew Steinborn
2020-07-04 03:19:38 -04:00
parent 5bea13c74e
commit f20c6ff3ea

View File

@@ -84,10 +84,14 @@ publishing {
repositories {
maven {
name = 'myRepo'
def base = 'file:///maven-repo'
def releasesRepoUrl = "$base/releases"
def snapshotsRepoUrl = "$base/snapshots"
credentials {
username project.findProperty('nexusUsername') ?: ''
password project.findProperty('nexusPassword') ?: ""
}
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
}
}