-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from embulk/upgrade-gradle-7.6.1
Upgrade the Gradle wrapper to 7.6.1
- Loading branch information
Showing
8 changed files
with
386 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,51 @@ | ||
embulk-util-rubytime | ||
===================== | ||
Embulk Utilities for Ruby Time | ||
=============================== | ||
|
||
How to release | ||
--------------- | ||
Almost Ruby-compatible date-time processor for Embulk and Embulk plugins. | ||
|
||
See also: https://central.sonatype.org/pages/gradle.html | ||
For Embulk plugin developers | ||
----------------------------- | ||
|
||
### Sonatype | ||
* [Javadoc](https://dev.embulk.org/embulk-util-config/) | ||
|
||
1. Create your account on Sonatype OSSRH. | ||
2. Set your account information in your `gradle.properties` (usually in `~/.gradle/gradle.properties`). | ||
* ``` | ||
ossrhUsername=<your Sonatype OSSRH username> | ||
ossrhPassword=<your Sonatype OSSRH password> | ||
``` | ||
For Maintainers | ||
---------------- | ||
|
||
### OpenPGP | ||
### Release | ||
|
||
1. Create your own OpenPGP key pair. | ||
2. 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> | ||
``` | ||
Modify `version` in `build.gradle` at a detached commit, and then tag the commit with an annotation. | ||
|
||
### Release | ||
``` | ||
git checkout --detach master | ||
(Edit: Remove "-SNAPSHOT" in "version" in build.gradle.) | ||
git add build.gradle | ||
git commit -m "Release vX.Y.Z" | ||
git tag -a vX.Y.Z | ||
(Edit: Write a tag annotation in the changelog format.) | ||
``` | ||
|
||
See [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) for the changelog format. We adopt a part of it for Git's tag annotation like below. | ||
|
||
``` | ||
## [X.Y.Z] - YYYY-MM-DD | ||
### Added | ||
- Added a feature. | ||
### Changed | ||
- Changed something. | ||
### Fixed | ||
- Fixed a bug. | ||
``` | ||
|
||
Push the annotated tag, then. It triggers a release operation on GitHub Actions after approval. | ||
|
||
1. Create a detached `HEAD` from the `master` branch. | ||
* ``` | ||
git checkout master | ||
git checkout --detach | ||
``` | ||
2. Remove `-SNAPSHOT` from the version number in `build.gradle`. | ||
3. Commit it and tag. | ||
* ``` | ||
git add build.gradle | ||
git commit -m "Release vX.Y.Z" | ||
git tag vX.Y.Z | ||
``` | ||
4. 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 | ||
5. Push the tag. | ||
* ``` | ||
git push -u origin vX.Y.Z | ||
``` | ||
6. Back to `master`. | ||
* ``` | ||
git checkout master | ||
``` | ||
7. Continue to the next `-SNAPSHOT` version. | ||
``` | ||
git push -u origin vX.Y.Z | ||
``` |
Oops, something went wrong.