File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ buildscript {
88 }
99 dependencies {
1010 classpath ' com.android.tools.build:gradle:9.2.1'
11- classpath ' com.github.dcendents:android-maven-gradle-plugin:2.1'
1211 classpath ' io.github.gradle-nexus:publish-plugin:2.0.0'
1312 }
1413}
Original file line number Diff line number Diff line change 1+ jdk :
2+ - openjdk17
3+
4+ install :
5+ - ./gradlew clean :library:publishToMavenLocal -x test
Original file line number Diff line number Diff line change @@ -48,15 +48,16 @@ afterEvaluate {
4848
4949 signing {
5050 required {
51- gradle. taskGraph. allTasks. any { task ->
52- task. name. toLowerCase(). contains(" publish" )
53- }
51+ ! version. toString(). endsWith(" SNAPSHOT" ) &&
52+ project. hasProperty(" signing.keyId" ) &&
53+ project. hasProperty(" signing.password" ) &&
54+ project. hasProperty(" signing.secretKeyRingFile" ) &&
55+ gradle. taskGraph. allTasks. any { task ->
56+ task. name. toLowerCase(). contains(" publish" ) &&
57+ ! task. name. toLowerCase(). contains(" mavenlocal" )
58+ }
5459 }
5560
5661 sign publishing. publications. release
5762 }
58- }
59- ext[" signing.keyId" ] = rootProject. ext[" signing.keyId" ]
60- ext[" signing.password" ] = rootProject. ext[" signing.password" ]
61- ext[" signing.secretKeyRingFile" ] = rootProject. ext[" signing.secretKeyRingFile" ]
62-
63+ }
You can’t perform that action at this time.
0 commit comments