Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
Attempt 1 at Maven repo!
Dieser Commit ist enthalten in:
Ursprung
bc48fcb9a8
Commit
fd65887f1f
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -20,7 +20,7 @@ pipeline {
|
||||
}
|
||||
stage('Deploy Artifacts') {
|
||||
steps {
|
||||
sh './gradlew publish'
|
||||
sh 'export MAVEN_DEPLOYMENT=true; ./gradlew publish'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -58,11 +58,16 @@ publishing {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Set up a Maven repository on Velocity's infrastructure, preferably something lightweight.
|
||||
/*repositories {
|
||||
if (System.getenv("MAVEN_DEPLOYMENT") != null && project.ext.getCurrentBranchName() == "master") {
|
||||
repositories {
|
||||
maven {
|
||||
name = 'myRepo'
|
||||
url = "file://${buildDir}/repo"
|
||||
if (project.version.toString().endsWith("-SNAPSHOT")) {
|
||||
url = "file:///maven-repo/snapshots"
|
||||
} else {
|
||||
url = "file:///maven-repo/releases"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
11
build.gradle
11
build.gradle
@ -16,6 +16,17 @@ allprojects {
|
||||
log4jVersion = '2.11.0'
|
||||
nettyVersion = '4.1.28.Final'
|
||||
guavaVersion = '25.1-jre'
|
||||
|
||||
getCurrentBranchName = {
|
||||
new ByteArrayOutputStream().withStream { os ->
|
||||
exec {
|
||||
executable = "git"
|
||||
args = ["rev-parse", "--abbrev-ref", "HEAD"]
|
||||
standardOutput = os
|
||||
}
|
||||
return os.toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren