Skip to content

Show the Maven plugin in the README - #84

Merged
abashev merged 1 commit into
mainfrom
readme-maven-plugin
Sep 25, 2026
Merged

abashev merged 1 commit into
mainfrom
readme-maven-plugin

Conversation

@abashev

@abashev abashev commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Before this PR

The README lists where open-java-format is published and links a Get started page for each
integration, but says nothing about Maven. dev.openjavaformat:fmt-maven-plugin 2.27.0.1 is now on
Maven Central, released from openjavaformat/fmt-maven-plugin,
and openjavaformat.dev documents it.

After this PR

==COMMIT_MSG==
The README shows the Maven plugin:

  • the Maven Central row names dev.openjavaformat:fmt-maven-plugin and links its repository;
  • Get started links the Maven plugin page;
  • a pom.xml block adds the plugin with the format goal and the open-java-format version it runs,
    which is required because the plugin brings no formatter of its own.
    ==COMMIT_MSG==

The snippet was run against the published 2.27.0.1 with 2.98.0.4: the plugin's output matches the
command line byte for byte, and a build without the dependency stops with a message that names it.

Possible downsides?

The block names 2.27.0.1 and 2.98.0.4 literally, so it has to be bumped with releases. The site takes
both versions from variables.

dev.openjavaformat:fmt-maven-plugin 2.27.0.1 is on Maven Central,
released from openjavaformat/fmt-maven-plugin, and openjavaformat.dev
has a Get started page for it. The README now names it among the Maven
Central artifacts, links that page, and shows the plugin block a
pom.xml needs. The block names the open-java-format version as well,
because the plugin brings no formatter of its own and a build without
the dependency stops.

The snippet was run against the published 2.27.0.1 with 2.98.0.4.
@abashev
abashev merged commit 9f5f5c7 into main Sep 25, 2026
9 checks passed
@abashev
abashev deleted the readme-maven-plugin branch September 25, 2026 21:01
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