Release a Java project using gradle.
- supports both
-snapshot
and-snapshot
-less versioning
This plugin is not included with the auto
CLI installed via NPM. To install:
npm i --save-dev @auto-it/gradle
# or
yarn add -D @auto-it/gradle
WARNING: You can only use one "package manager" at a time! Mixing them will lead to undesired results.
{
"plugins": [
[
"gradle",
{
// An optional gradle binary cmd/path relative to your project
// @default /usr/bin/gradle
"gradleCommand": "./gradlew",
// An optional gradle argument list -- IE any gradle option allowed for the version
// of gradle you're using
// @default []
"gradleOptions": ["-P someProp=someVal"]
}
]
// other plugins
]
}
This plugin uses the (gradle release plugin)[https://github.com/researchgate/gradle-release] to update the version. Make sure the the latest gradle-release-plugin
is in your build.gradle
.
plugins {
id 'net.researchgate.release' version '2.6.0' // gradle release plugin
}
This plugin will also call the publish
task with the release version, if configured in your project.
This plugin will use the snapshotSuffix
in gradle.properties
or build.gradle
if configured.
This plugin will run a release build to create release artifacts.