Skip to content

Release the 17 line by tag, with notes for 17.1.0 and its README - #299

Merged
abashev merged 3 commits into
17.X.Xfrom
abashev/release-the-17-line
Nov 30, 2026
Merged

abashev merged 3 commits into
17.X.Xfrom
abashev/release-the-17-line

Conversation

@abashev

@abashev abashev commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Before this PR

17.X.X builds, tests and runs on JDK 17 (#298), but a 17.x tag would run the 21 line's release workflow as it is: native images, .deb packages, the WebAssembly module and the JetBrains Marketplace, on JDK 21, with modules the branch no longer builds. The README and CLAUDE.md describe the 21 line, and there are no release notes for 17.1.0 (#293).

After this PR

  • Release by tag. release.yml publishes the jars as one deployment, the Gradle plugins once Maven Central serves the jars, and a draft GitHub release with the runnable jar and the Gradle plugins' jar, all on JDK 17. The native images, the .deb packages, the WebAssembly module and the JetBrains Marketplace stay with the 21 line.
  • Only a 17.x tag releases. The first job refuses any other tag, and every other job waits for it: a tag runs the workflow of its commit, so a 21.x tag on a commit of this line would otherwise release the 17 line's jars under a 21 version.
  • Not the latest release. JReleaser attaches the release to 17.X.X with makeLatest = 'FALSE'. GitHub ignores that for a draft, so the workflow says to publish the draft with "Set as the latest release" unchecked.
  • release-conventions. The targets are jars and github; github needs no native images, packages or module, and releases two files.
  • release-notes/17.1.0.md, and a line in release-notes/README.md: on the 17 line the notes are the GitHub release's text alone.
  • README. What the 17 line is for, what it publishes and leaves to the 21 line, how the Gradle plugin runs the 21 line's native image with openjavaformat.native.formatter.version, what reaches the line and how long it lives. Versions says how its numbers follow the 21 line's; building and testing are on JDK 17 alone.
  • CLAUDE.md says the same for agents, with formatting by the 21 line's runnable jar until 17.1.0 is out. ADR-002 notes that the line has no visitor for JDK 21.

Checked locally on Temurin 17.0.17, in a plain clone with GITHUB_REF_NAME=17.1.0:

  • jreleaserConfig for the GitHub release resolves branch: 17.X.X, draft: true, makeLatest: false, the notes from release-notes/17.1.0.md, and open-java-format-17.1.0-all.jar and gradle-open-java-format-17.1.0.jar as its files; jreleaserRelease --dryrun builds both and checksums them.
  • The staging deployments of -spi, open-java-format and -jdk-bootstrap hold version 17.1.0, and their Gradle Module Metadata, like the Gradle plugin's, says org.gradle.jvm.version 17. The plugin depends on -spi and -jdk-bootstrap 17.1.0.
  • act --dryrun passes every job of release.yml, zizmor finds nothing, and ./gradlew check passes.

Possible downsides?

  • The draft has to be published with "Set as the latest release" unchecked by hand; otherwise releases/latest moves to 17.1.0 until the next 21 release.
  • The workflow is new in shape and runs for real only on the first 17.x tag. Each job it keeps is the 21 line's, with JDK 17 and fewer inputs.
  • The deb-package action and the modules the line does not build stay in the tree, unused.

…GitHub release

A tag runs the release workflow of its commit, so a 17.x tag runs this one. It publishes the jars as one
deployment, the Gradle plugins once Maven Central serves the jars, and a draft GitHub release with the runnable
jar and the Gradle plugins' jar, all built on JDK 17. The native images, the .deb packages, the WebAssembly
module and the JetBrains Marketplace stay with the 21 line, and so do -PreleaseTarget=native and the IntelliJ
change notes: the release notes are the GitHub release's text alone.

The first job refuses a tag that is not a 17.x, and every other job waits for it. The GitHub release attaches
to 17.X.X and is not made the latest; GitHub ignores that for a draft, so the draft is published with "Set as
the latest release" unchecked.
The first release of the 17 line: what it carries, what it leaves to the 21 line, and where it formats as
21.1.2 does on JDK 17. The 17 line has no IntelliJ plugin, so its notes are the GitHub release's text alone.
The README says what the 17 line is for, what it publishes and leaves to the 21 line, how the Gradle plugin runs
the 21 line's native image, what reaches it and how long it lives; Versions says how its numbers follow the 21
line's, and building and testing are on JDK 17 alone. CLAUDE.md says so too, with the formatting by the 21
line's runnable jar until 17.1.0 is out and no syntax or API newer than Java 17. ADR-002 notes that the line has
no visitor for JDK 21.
@abashev
abashev merged commit a16a7cd into 17.X.X Nov 30, 2026
8 checks passed
@abashev
abashev deleted the abashev/release-the-17-line branch November 30, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant