A Gradle plugin that publishes your Android and Kotlin libraries, including sources and javadoc, to Maven Central or any other Nexus instance.
APACHE-2.0 License
Bot releases are visible (Hide)
configureBasedOnAppliedPlugins(sourcesJar: Boolean, javadocJar: Boolean)
Platform
APIs.afterEvaluate
anymore, making manual overrides easier.Configuration cache is generally supported, except for:
Published by github-actions[bot] 7 months ago
CENTRAL_PORTAL
option when specifying the Sonatype host.release
variant if the project has an Android target and no variant was explicitlyKotlinMultiplatform(...)
.closeAndReleaseRepository
task. Use releaseRepository
, whichConfiguration cache is generally supported, except for:
Published by github-actions[bot] 10 months ago
releaseRepository
releases a staging repository at the end of the buildpublishToMavenCentral
as alias for running publishAllPublicationsToMavenCentralRepository
.publishAndReleaseToMavenCentral
as alias for running both of the above.coordinates(...)
and leave the others at their default value.java-test-fixture
projects being broken with Gradle 8.6.closeAndReleaseRepository
in favor of releaseRepository
.When using Gradle 8.1 or newer configuration cache is generally supported.
Exceptions to that are:
Published by github-actions[bot] 10 months ago
configure(Platform)
from the main plugin to modifyconfigureBasedOnAppliedPlugins
DSL method toconfigure
logic of the main plugin.configure(Platform)
now validates that the required plugins aresimpleJavadocJar
to plainJavadocJar
. Thanks to @sschuberth.When using Gradle 8.1 or newer configuration cache is generally supported.
Exceptions to that are:
Published by github-actions[bot] over 1 year ago
java-test-fixtures
plugin.Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
createStagingRepository
task now uses the worker API which allows the project to builtKotlinJs
constructorsourcesJar
parameter has been deprecated.java-test-fixtures
projectscom.gradle.plugin-publish
1.0.0 and 1.1.0com.gradle.plugin-publish
1.0.0common
sources jar for multiplatform projects will only containConfiguration cache is supported starting with Gradle 7.6+ except for:
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] almost 2 years ago
java-test-fixtures
projects, project.group
project.version
are now being set again for those projects. #490