Skip to content

Commit

Permalink
Upgrade the Gradle wrapper to 7.6.1
Browse files Browse the repository at this point in the history
* Update README.md
* Remove NOTICE from releases as it does not have any special notice
* Enable dependency locking
* Use Gradle's Java toolchain
* Stop releasing `.module` files in Maven Central
* Upgrade test dependencies
* Sign with Gradle properties if available
* Test with verbose logs
  • Loading branch information
dmikurube committed Mar 28, 2023
1 parent f14601e commit bfc4a62
Show file tree
Hide file tree
Showing 8 changed files with 383 additions and 285 deletions.
92 changes: 43 additions & 49 deletions README.md
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
```
Loading

0 comments on commit bfc4a62

Please sign in to comment.