Skip to content

Commit

Permalink
Add support for GH user & token
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Nov 5, 2024
1 parent 8df0dc0 commit b15492a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2'
}

// define these in the `gradle.properties` file
ext.githubUser = project.findProperty('github.packages.user')
ext.githubToken = project.findProperty('github.packages.token')

repositories {
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/seqeralabs/tower-java-sdk")
credentials {
username = System.getenv("GITHUB_USERNAME")
password = System.getenv("GITHUB_TOKEN")
username = githubUser ?: System.getenv("GITHUB_USERNAME")
password = githubToken ?: System.getenv("GITHUB_TOKEN")
}
}
}
Expand Down

0 comments on commit b15492a

Please sign in to comment.