BREAKING
- Updated minimum supported JDK, Gradle, Android Gradle Plugin and Kotlin versions.
- Removed support for Dokka v1, it's now required to use Dokka in v2 mode.
- Mark
DirectorySignatureTypeinternal.
Behavior changes
validateDeploymentnow has theDeploymentValidationenum as type instead of being a boolean. The default
is now to just wait for theVALIDATEDstate. The previous behavior can be achieved by setting it toPUBLISHED.
NONEcan be used for disabling the validation completely.- When calling
configure(...)manually to configure what to publish and not passingjavadocJarexplicity,
the plugin now defaults to publishing an empty javadoc jar.
Features
- Android projects now support using Dokka for javadoc creation, this will happen automatically
when using the default options and the Dokka plugin is applied to the project. - Added consistent
JavadocJarandSourcesJaroptions toconfigureBasedOnAppliedPluginsand to all
applicable project types that can be passed toconfigure. The previousBooleanbased versions have
been deprecated. - When enabling Maven Central publishing through the DSL, the
mavenCentralDeploymentValidationand
mavenCentralAutomaticPublishingare used for the default values of the 2 parameters when they are not passed
explicitly. This allows to more easily override them in certain environments. - When isolated projects is enabled the module/project specific
gradle.propertiesfiles are now considered in
the same way they are when isolated projects is disabled.
Improvements
- Better error message when Maven Central credentials are missing.
Minimum supported versions
- JDK 17
- Gradle 9.0.0
- Android Gradle Plugin 8.13.0
- Kotlin Gradle Plugin 2.2.0
Compatibility tested up to
- JDK 25
- Gradle 9.3.0
- Gradle 9.4.0-milestone-4
- Android Gradle Plugin 8.13.2
- Android Gradle Plugin 9.0.0
- Android Gradle Plugin 9.1.0-alpha05
- Kotlin Gradle Plugin 2.3.0
- Kotlin Gradle Plugin 2.3.20-Beta1