embulk-util-config
How to release
See also: https://central.sonatype.org/pages/gradle.html
Sonatype
- Create your account on Sonatype OSSRH.
- Set your account information in your
gradle.properties
(usually in~/.gradle/gradle.properties
).-
ossrhUsername=<your Sonatype OSSRH username> ossrhPassword=<your Sonatype OSSRH password>
-
OpenPGP
- Create your own OpenPGP key pair.
- Set your OpenPGP key information in your
gradle.properties
.-
# For example: signing.keyId=1234ABCD signing.keyId=<your OpenPGP key ID> signing.password=<your OpenPGP key password> # For example: signing.secretKeyRingFile=/home/you/.gnupg/1234567890ABCDEF1234567890ABCDEF12345678.secring.gpg signing.secretKeyRingFile=<path to your OpenPGP secret key ring file>
-
Release
- Create a detached
HEAD
from themaster
branch.-
git checkout master git checkout --detach
-
- Remove
-SNAPSHOT
from the version number inbuild.gradle
. - Commit it and tag.
-
git add build.gradle git commit -m "Release vX.Y.Z" git tag vX.Y.Z
-
- Release.
-
./gradlew -Dorg.gradle.internal.publish.checksums.insecure=true publishMavenPublicationToMavenCentralRepository
-Dorg.gradle.internal.publish.checksums.insecure=true
is required due to: https://issues.sonatype.org/browse/OSSRH-56097
-
- Push the tag.
-
git push -u origin vX.Y.Z
-
- Back to
master
.-
git checkout master
-
- Continue to the next
-SNAPSHOT
version.