build: fix skipping artifact signature task when publishing locally

This commit is contained in:
thunderbiscuit
2024-04-09 16:15:50 -04:00
parent 0eadff1327
commit a40702ebd9
4 changed files with 11 additions and 4 deletions

View File

@@ -8,4 +8,4 @@ build:
./gradlew buildAndroidLib
publishlocal:
./gradlew publishToMavenLocal --exclude-task signMavenPublication
./gradlew publishToMavenLocal -P localBuild

View File

@@ -114,6 +114,10 @@ afterEvaluate {
}
signing {
if (project.hasProperty("localBuild")) {
isRequired = false
}
val signingKeyId: String? by project
val signingKey: String? by project
val signingPassword: String? by project
@@ -121,8 +125,7 @@ signing {
sign(publishing.publications)
}
// This task dependency ensures that we build the bindings
// binaries before running the tests
// This task dependency ensures that we build the bindings binaries before running the tests
tasks.withType<KotlinCompile> {
dependsOn("buildAndroidLib")
}