Skip to content

Commit 7110183

Browse files
committed
docs: prepare for re-creating release 0.1.0
1 parent b8cd54b commit 7110183

File tree

5 files changed

+56
-9
lines changed

5 files changed

+56
-9
lines changed

CHANGELOG.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Fixed
1111

1212
- Support for transporting changelog to github releases
13-
14-
## [0.1.0] - 2025-04-25
15-
16-
### Fixed
17-
1813
- Make sure release binaries are executable on unix systems
1914
- Make sure to use same zips for chocolatey distribution that are used for the release
2015

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ output = [
1212
].join('\n')
1313
-->
1414

15-
[![SpotlessCLI Version](https://img.shields.io/badge/latest--version-0.1.0-blue.svg)](CHANGES.md)
15+
[![SpotlessCLI Version](https://img.shields.io/badge/latest--version-0.0.0-blue.svg)](CHANGES.md)
1616

1717
[![OS Win](https://img.shields.io/badge/OS-Windows-blueviolet.svg)](#installation-on-windows)
1818
[![OS Linux](https://img.shields.io/badge/OS-Linux-blueviolet.svg)](#installation-on-macos-and-linux)

build-logic/src/main/groovy/buildlogic.spotless-markdown-conventions.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import com.diffplug.spotless.cli.picocli.usage.DocumentedUsages
22
import com.diffplug.gradle.spotless.FreshMarkExtension
3-
import com.oracle.svm.core.annotate.Inject
43

54
plugins {
65
id 'buildlogic.spotless-common-conventions'
@@ -10,7 +9,7 @@ plugins {
109
Action<FreshMarkExtension> freshmarkSetup = new Action<FreshMarkExtension>(){
1110

1211
void execute(FreshMarkExtension freshmark) {
13-
freshmark.target '*.md'
12+
freshmark.target '*.md', 'docs/devs/*.md'
1413
freshmark.properties(new FreshmarkPropertiesAction(rootProject, project))
1514
freshmark.properties {
1615
it.put('changeThisValueToForceCacheMiss', '1f31705c-b1c6-4bce-9831-98881431b721')
@@ -76,7 +75,7 @@ class FreshmarkPropertiesAction implements Action<Map<String, Object>> {
7675
properties.putAll(versionsCollected)
7776
def usageHelps = getUsageHelps()
7877
properties.putAll(usageHelps)
79-
properties.put('spotlessVersion', rootProject.spotlessChangelog.versionLast)
78+
properties.put('spotlessVersion', rootProject.spotlessChangelog.versionLast ?: '0.0.0')
8079
}
8180

8281
Map<String, String> getVersionsCollected() {

docs/devs/RELEASING.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Developer Notes for Releasing
2+
3+
## Creating a release
4+
5+
To create a new release, follow these steps (everything automated):
6+
7+
1. Navigate to https://github.com/diffplug/spotless-cli/actions/workflows/publish.yml
8+
2. Click on "Run workflow", use main branch, by default don't provide a version number
9+
10+
## Re-creating a release
11+
12+
If for some reason, we need to re-create a release, follow these steps (manual labor involved):
13+
14+
### In spotless-cli repo:
15+
16+
https://github.com/diffplug/spotless-cli
17+
18+
1. Navigate to "Releases" (right column)
19+
2. Make sure you are on the right release version (the one you need to recreate)
20+
3. Click on the trashcan in the upper right corner of the release
21+
4. Confirm
22+
5. Switch to "Tags" in the tab-bar at the top
23+
6. Click on the `...` at the very right of the version to recreate -> Delete tag
24+
7. Confirm
25+
26+
### In homebrew-tap repo:
27+
28+
https://github.com/diffplug/homebrew-tap
29+
30+
1. Navigate to "Releases" (right column)
31+
2. Switch to "Tags" in the tab-bar at the top
32+
3. Click on the `...` at the very right of the version to recreate -> Delete tag
33+
4. Confirm
34+
35+
### In chocolatey-bucket repo:
36+
37+
https://github.com/diffplug/chocolatey-bucket
38+
39+
1. Navigate to "Releases" (right column)
40+
2. Switch to "Tags" in the tab-bar at the top
41+
3. Click on the `...` at the very right of the version to recreate -> Delete tag
42+
4. Confirm
43+
44+
### In local clone of spotless-cli repo:
45+
46+
1. Make sure you are on main branch, pull the HEAD
47+
2. Open `CHANGELOG.md` and merge the version to recreate with the Unreleased version
48+
This typically means deleting the release header and empty lines, but could mean to cut&paste sections together
49+
3. Run `gradlew changelogCheck -i` to make sure the changelog is valid
50+
4. If you have the deleted tag also locally, delete it with `git tag -d <tagname>` e.g. `git tag -d v1.0.0`
51+
5. commit the changes with `git commit -m "changelog: recreate v<your-version>"` e.g. `git commit -m "changelog: recreate v1.0.0"`
52+
6. push the changes with `git push origin main`

jreleaser.yml.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ distributions:
5151
chocolatey:
5252
templateDirectory: app/src/jreleaser/distributions/spotless-cli/chocolatey
5353
username: @Env.JRELEASER_CHOCOLATEY_USER@ # does not support name templates, so use gradle templating
54+
iconUrl: https://cdn.statically.io/gh/diffplug/spotless-cli/v{{projectVersion}}/docs/logo/spotless-brush-256.png
5455
repository:
5556
branch: main

0 commit comments

Comments
 (0)