0.33.0
Caution
Sonatype OSSRH (oss.sonatype.org and s01.oss.sonatype.org) will be shut down on June 30, 2025.
Migration steps:
- Sign in to the Central Portal with your existing Sonatype account
- Go to Namespaces and click "Migrate Namespace"
for the relevant namespace. Confirm the migration and wait for it to complete. - Optional: If you want to publish snapshots of your project tap the 3 dots next to your namespace and
select "Enable SNAPSHOTs" - Go to Account and select "Generate User Token". Use the shown
"Username" and "Password" as values formavenCentralUsernameandmavenCentralPassword. - Configure this plugin to publish to Central Portal. Either update your
SONATYPE_HOSTproperty from
DEFAULTorS01toCENTRAL_PORTALor callpublishToMavenCentral()/publishToMavenCentral(automaticRelease)
without aSonatypeHostparameter.
BREAKING
publishToMavenCentral()andpublishToMavenCentral(automaticRelease)withoutSonatypeHostwill
now publish through the Central Portal.- Deprecated overloads of
publishToMavenCentralthat take aSonatypeHostparameter. - Deprecated
SonatypeHost.
New
- Basic experimental support for
com.android.fused-library. There are currently several limitations
on the Android Gradle plugin side which make signing as well as publishing sources/javadocs not possible.
Improvements
- Added new Gradle properties
mavenCentralPublishing=truereplacesSONATYPE_HOST=CENTRAL_PORTALmavenCentralAutomaticPublishing=truereplacesSONATYPE_AUTOMATIC_RELEASE=truesignAllPublications=truereplacesRELEASE_SIGNING_ENABLED=true- Note: The old properties continue to work and there are no plans to remove them
- The base plugin is now compatible with isolated projects as long as
pomFromGradleProperties()is
not called. - It's possible to pass a
TaskProvidertoJavadocJar.Dokka - Improved naming of produced
-javadocjars (locally, the name of the published artifact is unchanged) - Resolve issue that caused
versionto be read too early when publishing to
Central Portal.
Thanks to @Goooler, @solrudev and @sschuberth for their contributions to this release.
Minimum supported versions
- JDK 11
- Gradle 8.5
- Android Gradle Plugin 8.0.0
- Kotlin Gradle Plugin 1.9.20
Compatibility tested up to
- JDK 24
- Gradle 8.14.2
- Gradle 9.0-rc1
- Android Gradle Plugin 8.10.0
- Android Gradle Plugin 8.11.0-rc02
- Android Gradle Plugin 8.12.0-alpha06
- Kotlin Gradle Plugin 2.1.21
- Kotlin Gradle Plugin 2.2.0-RC3