mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-01-18 14:44:07 +08:00
I'm crazy
This commit is contained in:
parent
f6f48e9b2d
commit
8ea1aef173
@ -61,7 +61,7 @@ publishing {
|
|||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = 'myRepo'
|
name = 'myRepo'
|
||||||
def base = project.ext.getCurrentBranchName() == "master" ? File.createTempDir().toURI().toURL().toString() : 'file:///maven-repo'
|
def base = project.ext.getCurrentBranchName() == "master" ? 'file:///maven-repo' : File.createTempDir().toURI().toURL().toString()
|
||||||
def releasesRepoUrl = "$base/releases"
|
def releasesRepoUrl = "$base/releases"
|
||||||
def snapshotsRepoUrl = "$base/snapshots"
|
def snapshotsRepoUrl = "$base/snapshots"
|
||||||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
||||||
|
Loading…
Reference in New Issue
Block a user