Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
plugins {
id 'net.saliman.properties' version '1.5.2'
id "org.sonarqube" version "7.0.1.6134"
}

Expand Down Expand Up @@ -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 {
Expand Down
6 changes: 4 additions & 2 deletions flux-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Comment on lines +334 to 338
username = ghActor
password = ghToken
Expand Down
Loading