Skip to content

Commit

Permalink
fixed: merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsuzuki committed Jul 27, 2021
1 parent 136708c commit 5758b9c
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,6 @@ plugins {

apply from: "$project.rootDir/spotless.gradle"


// Github Packages
def getUser() {
def githubProperties = new Properties()
githubProperties.load(new FileInputStream(rootProject.file("github.properties")))
return System.getenv("GPR_USER") ?: githubProperties["gpr.usr"]
}

def getKey() {
def githubProperties = new Properties()
githubProperties.load(new FileInputStream(rootProject.file("github.properties")))
return System.getenv("GPR_API_KEY") ?: githubProperties["gpr.key"]
}

android {
def versionProperties = new Properties()
rootProject.file("version.properties").withInputStream { versionProperties.load(it) }
Expand All @@ -46,15 +32,18 @@ android {
return rootProject.name
}

// Github Packages
def githubProperties = new Properties()
githubProperties.load(new FileInputStream(rootProject.file("github.properties")))

publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/rjsuzuki/billingz")
credentials {
username = ${getUser()} //GPR_USER is a CI Environment Variable
password = ${getKey()} //GPR_API_KEY is a CI Environment Variable
username = System.getenv("GPR_USER") ?: githubProperties['gpr.usr'] // GPR_USER is a CI Environment Variable
password = System.getenv("GPR_API_KEY") ?: githubProperties['gpr.key'] // GPR_API_KEY is a CI Environment Variable
}
}
}
Expand Down

0 comments on commit 5758b9c

Please sign in to comment.