Repository navigation
Release the 17 line by tag, with notes for 17.1.0 and its README - #299
Merged
Merged
Conversation
…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.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before this PR
17.X.Xbuilds, 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.ymlpublishes 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.17.X.XwithmakeLatest = '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 arejarsandgithub;githubneeds no native images, packages or module, and releases two files.release-notes/17.1.0.md, and a line inrelease-notes/README.md: on the 17 line the notes are the GitHub release's text alone.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.Checked locally on Temurin 17.0.17, in a plain clone with
GITHUB_REF_NAME=17.1.0:jreleaserConfigfor the GitHub release resolvesbranch: 17.X.X,draft: true,makeLatest: false, the notes fromrelease-notes/17.1.0.md, andopen-java-format-17.1.0-all.jarandgradle-open-java-format-17.1.0.jaras its files;jreleaserRelease --dryrunbuilds both and checksums them.-spi,open-java-formatand-jdk-bootstraphold version 17.1.0, and their Gradle Module Metadata, like the Gradle plugin's, saysorg.gradle.jvm.version17. The plugin depends on-spiand-jdk-bootstrap17.1.0.act --dryrunpasses every job ofrelease.yml, zizmor finds nothing, and./gradlew checkpasses.Possible downsides?
releases/latestmoves to 17.1.0 until the next 21 release.deb-packageaction and the modules the line does not build stay in the tree, unused.