Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
gtebrean committed Jan 10, 2025
1 parent bb1a8f7 commit fb94735
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion gradle/publish/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: "de.marcphilipp.nexus-publish"
Expand Down Expand Up @@ -64,10 +65,21 @@ nexusStaging {
packageGroup = rootProject.group
}

afterEvaluate {
tasks.withType(PublishToMavenRepository).configureEach {
dependsOn('bundleReleaseAar')
}
}


tasks.named('publish') {
dependsOn('assembleRelease')
}

signing {
sign publishing.publications.release
def gpgSecretKey = System.getenv('OSSRH_GPG_SECRET_KEY')
def password = System.getenv('OSSRH_GPG_SECRET_KEY_PASSWORD')
useInMemoryPgpKeys(gpgSecretKey, password)
}
}

0 comments on commit fb94735

Please sign in to comment.