MANDATORY
If you are using one or more of the git options (requireBranch
, pushToRemote
or pushToCurrentBranch
) you need to adapt your configuration.
In you build.gradle either replace:
git.<option> = '<value>'
with release.git.<option> = '<value>'
or
git {
<option> = <value>
}
with
release {
git {
<option> = <value>
}
}
RECOMMENDED
Formally it was usually done by adding
createReleaseTag.dependsOn uploadArchives
This should not be done anymore. (Although this will still continue to work, but may have undesired side effects in the future)
Instead use
afterReleaseBuild.dependsOn uploadArchives
RECOMMENDED
If you are using either includeProjectNameInTag
or tagPrefix
you should consider moving to tagTemplate
. The two options have been deprecated and will be removed in the future.
These two scenarios should make it easy to get the same result as before:
includeProjectNameInTag
not set or set to falsetagPrefix
set to "something"
Remove includeProjectNameInTag
or tagPrefix
and add
release {
tagTemplate = "something-${version}"
}
includeProjectNameInTag
set to true
Remove includeProjectNameInTag
or tagPrefix
and add
release {
tagTemplate = "${name}-${version}"
}