mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 01:27:37 +00:00
ok it actually works now
This commit is contained in:
parent
e5ae89a072
commit
7bc42c25a7
@ -91,7 +91,7 @@ static def getDate() {
|
|||||||
task buildProperties {
|
task buildProperties {
|
||||||
ant.propertyfile(file: "$project.rootDir/src/main/resources/build.properties") {
|
ant.propertyfile(file: "$project.rootDir/src/main/resources/build.properties") {
|
||||||
entry(key: "buildAuthor", default: System.getenv("JENKINS_URL") != null ? "jenkins" : "unknown")
|
entry(key: "buildAuthor", default: System.getenv("JENKINS_URL") != null ? "jenkins" : "unknown")
|
||||||
entry(key: "buildNumber", value: System.getenv("JENKINS_URL") != null ? System.getenv("BUILD_NUMBER") : getBuildNumber())
|
entry(key: "buildNumber", value: System.getenv("JENKINS_URL") != null ? System.getenv("BUILD_NUMBER") + " (Jenkins)": getBuildNumber())
|
||||||
entry(key: "buildDate", value: getDate())
|
entry(key: "buildDate", value: getDate())
|
||||||
entry(key: "buildHead", value: getGitHash())
|
entry(key: "buildHead", value: getGitHash())
|
||||||
}
|
}
|
||||||
@ -128,6 +128,7 @@ tasks.withType(JavaCompile) {
|
|||||||
tasks {
|
tasks {
|
||||||
build {
|
build {
|
||||||
dependsOn(shadowJar)
|
dependsOn(shadowJar)
|
||||||
|
finalizedBy(buildProperties)
|
||||||
if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) {
|
if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) {
|
||||||
if (!getVersion().toString().toLowerCase().endsWith("-snapshot")) {
|
if (!getVersion().toString().toLowerCase().endsWith("-snapshot")) {
|
||||||
dependsOn(publishPlexReleasesPublicationToMavenRepository)
|
dependsOn(publishPlexReleasesPublicationToMavenRepository)
|
||||||
|
Loading…
Reference in New Issue
Block a user