Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scripts android #2138

Merged
merged 15 commits into from
Jan 15, 2025
Prev Previous commit
Next Next commit
Update build.gradle
Signed-off-by: gtebrean <99179176+gtebrean@users.noreply.github.com>
  • Loading branch information
gtebrean committed Jan 13, 2025
commit e3f7a3cc8f1586dc4e2d4348dada609da670011c
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)
}
}