Skip to content

Commit

Permalink
Release 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob committed Nov 1, 2021
1 parent d9dc668 commit 381180b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
10 changes: 1 addition & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# Change Log


## 0.12 *(2021-06-06 --- 2021-11-??)*

### Breaking
* ...
## 0.12 *(2021-06-06 --- 2021-11-01)*

### New
* quality: Android Gradle Plugin 4.2.1 compatible (#126)
Expand All @@ -25,11 +22,6 @@
* quality: Mention violationReport* tasks from :lint output (#24/#125)
* convention: migrate release task configuration to be lazy (#104/#134)

### Deprecations

#### `net.twisterrob.gradle:artifact-name`
* ...

### Internal
* tests: lintOptions.check syntax (#124/#128)
* convention: Move from GrGit to JGit direct usage (#131/#132)
Expand Down
17 changes: 10 additions & 7 deletions docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
1. `git add gradle.properties CHANGELOG.md & git commit -m "Release x.y"`
* `CHANGELOG.md`: review bullet points of what changed
* `CHANGELOG.md`: add links to PRs/commits for changes
* `CHANGELOG.md`: remove empty sections
* `CHANGELOG.md`: update version end date
* `gradle.properties`: remove `-SNAPSHOT` suffix
Double-check that version is `x.y`
1. [Draft a new release](https://github.com/TWiStErRob/net.twisterrob.gradle/releases/new) on GitHub
* "_Tag version_": `vx.y` @ Target: `master`
* "_Release title_": `x.y Two Word Summary` (e.g. biggest change / reason for release)
* "_Describe this release_":
```
```markdown
* TODO important change 1 from change log
* TODO important change 2 from change log

Expand All @@ -25,21 +26,22 @@
* Set up credentials
* `sonatypeUsername` is the account name of https://s01.oss.sonatype.org/
* `sonatypePassword` is `sonatypeUsername`'s password
* `signingKey` is GPG private armored key (just the base64 part on one line)
* `signingKey` is GPG private armored key
(just the base64 part on one line, skip the last orphan part)
* `signingPassword` is `signingKey`'s passphrase
```bash
```shell
set ORG_GRADLE_PROJECT_sonatypeUsername=...
set ORG_GRADLE_PROJECT_sonatypePassword=...
set ORG_GRADLE_PROJECT_signingKey=...
set ORG_GRADLE_PROJECT_signingPassword=...
```
* `gradlew publishReleasePublicationToSonatypeRepository -x :plugin:publishReleasePublicationToSonatypeRepository`
* `gradlew publishReleasePublicationToSonatypeRepository`
_If this fails, fix and amend last commit._
* Open URL, log in and close staging repository to validate.
1. Archive and final integration test.
* Run `p:\repos\release\net.twisterrob.gradle\download-repo.bat`
* Use it in a real project from staging repository:
```
```gradle
repositories {
maven {
name = "Sonatype Staging for net.twisterrob"
Expand All @@ -51,10 +53,11 @@
1. `git push origin master:master` to get the "Release x.y" commit published.
1. Publish [drafted release](https://github.com/TWiStErRob/net.twisterrob.gradle/releases) on GitHub
Note: _this will create a tag on `master`, equivalent to:_
```
```shell
git checkout master
git tag vx.y
git push origin vx.y # or --tags
```
1. Close `x.y` [milestone](https://github.com/TWiStErRob/net.twisterrob.gradle/milestones)
* "Due date": release date
* "Description": https://github.com/TWiStErRob/net.twisterrob.gradle/releases/tag/vx.y
Expand All @@ -68,7 +71,7 @@
* `docs/examples/snapshot/build.gradle.kts`: plugin version `x.z-SNAPSHOT`
* `docs/examples/release/build.gradle.kts`: plugin version `x.y`
* `CHANGELOG.md`: add history section:
```
```markdown
## x.z *(YYYY-MM-DD --- )*

### Breaking
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.deprecation.trace=true
# -Xmx256M locally, and even -Xmx512M on GitHub Actions is not enough for Dokka 1.4.32, so let's give it -Xmx768M
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx768M

projectVersion=0.12-SNAPSHOT
projectVersion=0.12

# Default test substitutions
net.twisterrob.test.android.compileSdkVersion=android-30
Expand Down

0 comments on commit 381180b

Please sign in to comment.