mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-01-18 14:44:07 +08:00
Point all new Maven artifact deploys to Nexus
This commit is contained in:
parent
85d88d59d3
commit
4469a89aaa
@ -92,10 +92,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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user