Skip to content

Commit

Permalink
restored codeartifacto download in gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
vga91 committed Aug 22, 2024
1 parent a25eb1a commit 56b627c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
40 changes: 20 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ repositories {
/*maven { // this contains the neo4j 4.0.0-beta jars
url "https://neo4j.bintray.com/community/"
}*/
// if (System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "") {
// maven {
// url System.getenv('CODEARTIFACT_DOWNLOAD_URL')
// credentials {
// username System.getenv('CODEARTIFACT_USERNAME')
// password System.getenv('CODEARTIFACT_TOKEN')
// }
// }
// } else {
if (System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "") {
maven {
url System.getenv('CODEARTIFACT_DOWNLOAD_URL')
credentials {
username System.getenv('CODEARTIFACT_USERNAME')
password System.getenv('CODEARTIFACT_TOKEN')
}
}
} else {
mavenCentral()
// }
}
maven {
url "https://repo.gradle.org/gradle/libs-releases"
}
Expand Down Expand Up @@ -77,17 +77,17 @@ subprojects {
/*maven { // this contains the neo4j 4.0.0-beta jars
url "https://neo4j.bintray.com/community/"
}*/
// if (System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "") {
// maven {
// url System.getenv('CODEARTIFACT_DOWNLOAD_URL')
// credentials {
// username System.getenv('CODEARTIFACT_USERNAME')
// password System.getenv('CODEARTIFACT_TOKEN')
// }
// }
// } else {
if (System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "") {
maven {
url System.getenv('CODEARTIFACT_DOWNLOAD_URL')
credentials {
username System.getenv('CODEARTIFACT_USERNAME')
password System.getenv('CODEARTIFACT_TOKEN')
}
}
} else {
mavenCentral()
// }
}
maven {
url "https://repo.gradle.org/gradle/libs-releases"
}
Expand Down
20 changes: 10 additions & 10 deletions extended/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,16 @@ publishing {
name = 'pipeline'
url = "file://${project(':extended').buildDir}/repo"
}
if (System.getenv("CODEARTIFACT_PUBLISH_URL") ?: "" != "") {
maven {
name = 'codeartifact-publish'
url System.getenv('CODEARTIFACT_PUBLISH_URL')
credentials {
username System.getenv('CODEARTIFACT_USERNAME')
password System.getenv('CODEARTIFACT_TOKEN')
}
}
}
// if (System.getenv("CODEARTIFACT_PUBLISH_URL") ?: "" != "") {
// maven {
// name = 'codeartifact-publish'
// url System.getenv('CODEARTIFACT_PUBLISH_URL')
// credentials {
// username System.getenv('CODEARTIFACT_USERNAME')
// password System.getenv('CODEARTIFACT_TOKEN')
// }
// }
// }
}
publications {
shadow(MavenPublication) { publication ->
Expand Down

0 comments on commit 56b627c

Please sign in to comment.