diff --git a/build.gradle b/build.gradle index 622b4a7950..7b072443b8 100644 --- a/build.gradle +++ b/build.gradle @@ -25,9 +25,9 @@ println "CODEARTIFACT_DOWNLOAD_URL value" println System.getenv("CODEARTIFACT_DOWNLOAD_URL") println "RELEASE_BRANCH_NAME value" println System.getenv("RELEASE_BRANCH_NAME") -if (System.env.CI != null && System.getenv("RELEASE_BRANCH_NAME") != "true") { +if (System.env.CI != null && System.getenv("RELEASE_BRANCH_NAME") == "false") { //if (System.env.CI != null && System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "") { - println("im here...") + println("im here 1...") apply from: 'teamcity-repository.gradle' } @@ -37,7 +37,8 @@ repositories { /*maven { // this contains the neo4j 4.0.0-beta jars url "https://neo4j.bintray.com/community/" }*/ - if (System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "") { + if (System.getenv("RELEASE_BRANCH_NAME") == "false" && (System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "")) { + println("im here 2...") maven { url System.getenv('CODEARTIFACT_DOWNLOAD_URL') credentials { @@ -62,7 +63,8 @@ subprojects { /*maven { // this contains the neo4j 4.0.0-beta jars url "https://neo4j.bintray.com/community/" }*/ - if (System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "") { + if (System.getenv("RELEASE_BRANCH_NAME") == "false" && (System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "")) { + println("im here 3...") maven { url System.getenv('CODEARTIFACT_DOWNLOAD_URL') credentials { @@ -70,9 +72,9 @@ subprojects { password System.getenv('CODEARTIFACT_TOKEN') } } - } else { - mavenCentral() } + mavenCentral() + maven { url "https://repo.gradle.org/gradle/libs-releases" }