@@ -9,7 +9,7 @@ buildscript {
99}
1010
1111plugins {
12- id ' com.gradleup.nmcp' version ' 1.2.0'
12+ id ' com.gradleup.nmcp.aggregation ' version ' 1.2.0'
1313}
1414
1515apply plugin : ' com.android.library'
@@ -60,7 +60,7 @@ afterEvaluate {
6060 artifactId = ' vector'
6161 version = project. hasProperty(' VERSION' ) ? project. VERSION : [' make' , ' version' ]. execute(null , file(' ../..' )). text. trim()
6262
63- artifact tasks . named( " bundleReleaseAar " ) . get() . outputs. files . singleFile
63+ artifact( " $b uildDir / outputs/aar/android-release.aar " )
6464
6565 // Maven Central metadata
6666 pom {
@@ -94,27 +94,28 @@ afterEvaluate {
9494 }
9595 }
9696 }
97- }
9897
99- // Signing configuration for Maven Central
100- signing {
101- required { project. hasProperty(" SIGNING_KEY" ) }
102- if (project. hasProperty(" SIGNING_KEY" )) {
103- useInMemoryPgpKeys(
104- project. property(" SIGNING_KEY" ). toString(),
105- project. property(" SIGNING_PASSWORD" ). toString()
106- )
107- sign publishing. publications. release
98+ // Signing configuration for Maven Central
99+ signing {
100+ required { project. hasProperty(" SIGNING_KEY" ) }
101+ if (project. hasProperty(" SIGNING_KEY" )) {
102+ useInMemoryPgpKeys(
103+ project. property(" SIGNING_KEY" ). toString(),
104+ project. property(" SIGNING_PASSWORD" ). toString()
105+ )
106+ sign publishing. publications. release
107+ }
108108 }
109109}
110110
111- // Maven Central publishing via NMCP
112- nmcp {
111+ // Maven Central publishing via NMCP aggregation
112+ nmcpAggregation {
113113 if (project. hasProperty(" SONATYPE_USERNAME" ) && project. hasProperty(" SONATYPE_PASSWORD" )) {
114- publishAllPublications {
114+ centralPortal {
115115 username = project. property(" SONATYPE_USERNAME" )
116116 password = project. property(" SONATYPE_PASSWORD" )
117- publicationType = " AUTOMATIC"
117+ publishingType = " AUTOMATIC"
118118 }
119+ publishAllProjectsProbablyBreakingProjectIsolation()
119120 }
120121}
0 commit comments