Skip to content

Integrate adocfmt for AsciiDoc formatting#2960

Merged
nedtwigg merged 4 commits into
diffplug:mainfrom
dheid:main
Jun 8, 2026
Merged

Integrate adocfmt for AsciiDoc formatting#2960
nedtwigg merged 4 commits into
diffplug:mainfrom
dheid:main

Conversation

@dheid

@dheid dheid commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

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.

@nedtwigg nedtwigg left a comment

Copy link
Copy Markdown
Member

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

dheid commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

@nedtwigg Done

@nedtwigg nedtwigg merged commit 68a7a3b into diffplug:main Jun 8, 2026
20 checks passed
@nedtwigg

nedtwigg commented Jun 8, 2026

Copy link
Copy Markdown
Member

Thanks for the great PR! It'll get released when the other PRs in the pipeline either get merged or long-term blocked.

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