Skip to content

Commit

Permalink
set singing inside pom
Browse files Browse the repository at this point in the history
  • Loading branch information
frontegg-david committed Jul 23, 2024
1 parent 70e714d commit deeb66b
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@ afterEvaluate {
from components.release

pom {
// Signing configuration
signing {
def gpgPrivateKey = System.getenv('GPG_PRIVATE_KEY')
def gpgPassphrase = System.getenv("GPG_PASSPHRASE")
if (gpgPrivateKey == null || gpgPassphrase == null) {
throw new GradleException("GPG_PRIVATE_KEY and GPG_PASSPHRASE environment variables must be set")
}

println "GPG_PRIVATE_KEY and GPG_PASSPHRASE are set"

useInMemoryPgpKeys(gpgPrivateKey, gpgPassphrase)
sign publishing.publications.mavenJava
}

name = 'android'
description = 'Frontegg Android Kotlin'
url = 'https://github.com/frontegg/frontegg-android-kotlin'
Expand All @@ -91,19 +105,7 @@ afterEvaluate {
}
}

// Signing configuration
signing {
def gpgPrivateKey = System.getenv('GPG_PRIVATE_KEY')
def gpgPassphrase = System.getenv("GPG_PASSPHRASE")
if (gpgPrivateKey == null || gpgPassphrase == null) {
throw new GradleException("GPG_PRIVATE_KEY and GPG_PASSPHRASE environment variables must be set")
}

println "GPG_PRIVATE_KEY and GPG_PASSPHRASE are set"

useInMemoryPgpKeys(gpgPrivateKey, gpgPassphrase)
sign publishing.publications.mavenJava
}
}
}
repositories {
Expand Down

0 comments on commit deeb66b

Please sign in to comment.