Skip to content

Commit

Permalink
release: AWS AppSync SDK for Android 3.1.4 (Amend)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjuliano authored Apr 19, 2021
1 parent 08e47e5 commit 0435eb2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ allprojects {
}
}

subprojects { project ->
afterEvaluate {
if (System.getenv("ORG_GRADLE_PROJECT_signingKeyId") != null) {
System.out.println("Getting signing info from protected source.")
project.ext.'signing.keyId' = System.getenv("ORG_GRADLE_PROJECT_signingKeyId")
project.ext.'signing.password' = System.getenv('ORG_GRADLE_PROJECT_signingPassword')
project.ext.'signing.inMemoryKey' = System.getenv('ORG_GRADLE_PROJECT_signingInMemoryKey')
project.ext.SONATYPE_NEXUS_USERNAME = System.getenv('ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME')
project.ext.SONATYPE_NEXUS_PASSWORD = System.getenv('ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD')
}
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
Expand Down
5 changes: 5 additions & 0 deletions gradle-mvn-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ afterEvaluate { project ->

signing {
required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
if (project.hasProperty('signing.inMemoryKey')) {
def signingKey = findProperty("signing.inMemoryKey").replace("\\n","\n")
def signingPassword = findProperty("signing.password")
useInMemoryPgpKeys(signingKey, signingPassword)
}
sign configurations.archives
}

Expand Down

0 comments on commit 0435eb2

Please sign in to comment.