diff --git a/build.gradle b/build.gradle index 1e7a7fd1..4d6901dc 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,5 @@ plugins { + id 'net.saliman.properties' version '1.5.2' id "org.sonarqube" version "7.0.1.6134" } @@ -45,6 +46,17 @@ subprojects { maven { url = "https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/" } + + // Allows for resolving the Spark connector dependency from a GH packages repository. + if (project.hasProperty("ghPackagesUrl")) { + maven { + url ghPackagesUrl + credentials { + username = ghActor + password = ghToken + } + } + } } configurations.configureEach { diff --git a/flux-cli/build.gradle b/flux-cli/build.gradle index cd69c4a5..f4602828 100644 --- a/flux-cli/build.gradle +++ b/flux-cli/build.gradle @@ -329,10 +329,12 @@ publishing { } } repositories { - if (project.hasProperty("ghToken")) { + // Supports publishing to a GH packages repository for GH Action workflows that are not able to access our + // internal repository. + if (project.hasProperty("ghPackagesUrl")) { maven { name = "GitHubPackages" - url = uri("https://maven.pkg.github.com/rjrudin/flux") + url = uri(ghPackagesUrl) credentials { username = ghActor password = ghToken