13
0
geforkt von Mirrors/Velocity

Attempt 1 at Maven repo!

Dieser Commit ist enthalten in:
Andrew Steinborn 2018-08-21 23:35:09 -04:00
Ursprung bc48fcb9a8
Commit fd65887f1f
3 geänderte Dateien mit 23 neuen und 7 gelöschten Zeilen

2
Jenkinsfile vendored
Datei anzeigen

@ -20,7 +20,7 @@ pipeline {
} }
stage('Deploy Artifacts') { stage('Deploy Artifacts') {
steps { steps {
sh './gradlew publish' sh 'export MAVEN_DEPLOYMENT=true; ./gradlew publish'
} }
} }
} }

Datei anzeigen

@ -58,11 +58,16 @@ publishing {
} }
} }
// TODO: Set up a Maven repository on Velocity's infrastructure, preferably something lightweight. if (System.getenv("MAVEN_DEPLOYMENT") != null && project.ext.getCurrentBranchName() == "master") {
/*repositories { repositories {
maven { maven {
name = 'myRepo' name = 'myRepo'
url = "file://${buildDir}/repo" if (project.version.toString().endsWith("-SNAPSHOT")) {
url = "file:///maven-repo/snapshots"
} else {
url = "file:///maven-repo/releases"
}
}
}
} }
}*/
} }

Datei anzeigen

@ -16,6 +16,17 @@ allprojects {
log4jVersion = '2.11.0' log4jVersion = '2.11.0'
nettyVersion = '4.1.28.Final' nettyVersion = '4.1.28.Final'
guavaVersion = '25.1-jre' guavaVersion = '25.1-jre'
getCurrentBranchName = {
new ByteArrayOutputStream().withStream { os ->
exec {
executable = "git"
args = ["rev-parse", "--abbrev-ref", "HEAD"]
standardOutput = os
}
return os.toString()
}
}
} }
repositories { repositories {