Skip to content

Integrate adocfmt for AsciiDoc formatting#2960

Open
dheid wants to merge 4 commits into
diffplug:mainfrom
dheid:main
Open

Integrate adocfmt for AsciiDoc formatting#2960
dheid wants to merge 4 commits into
diffplug:mainfrom
dheid:main

Conversation

@dheid
Copy link
Copy Markdown

@dheid dheid commented Jun 4, 2026

Hi @nedtwigg, this is a fresh PR for AsciiDoc support, following up on the earlier
one that we closed.

I took your feedback to heart: the formatting logic now lives in its own library,
org.drjekyll:adocfmt:0.2.0, published on Maven Central. This PR therefore
contains only the thin glue code, an AdocfmtStep in lib that resolves the
library via JarState and reflection (the same approach as KtfmtStep and
GoogleJavaFormatStep), plus the Gradle and Maven wiring. The implementation and
the harness are fully decoupled now, and lib gains no new compile dependency.

Thanks again for the patience and the clear guidance earlier. It led to a much
better result.

Copy link
Copy Markdown
Member

@nedtwigg nedtwigg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Needs a minor change around the default paths

Comment thread plugin-gradle/src/main/java/com/diffplug/gradle/spotless/AsciidocExtension.java Outdated
Comment thread plugin-maven/src/main/java/com/diffplug/spotless/maven/asciidoc/Asciidoc.java Outdated
@dheid dheid requested a review from nedtwigg June 5, 2026 09:05
@dheid
Copy link
Copy Markdown
Author

dheid commented Jun 5, 2026

@nedtwigg Done

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.

2 participants