Repository navigation
Say the Gradle plugin carries the formatter and needs no root repository - #13
Merged
Merged
Conversation
The Gradle plugin now carries the formatter's jars inside it (openjavaformat/open-java-format#20): a build declares nothing for the formatter and needs no repository for it. The native binary is resolved by each project that formats, through its own repositories, so the root project of a multi-project build needs none, and parallel builds work. The multi-project example declares its repositories in the subprojects to show that. The Gradle page gains a Build cache section, spotlessJava's key changes with the formatter and holds across directories and machines, and a section on declaring another formatter version in palantirJavaFormat. The Spotless page no longer ties the native property to Java 21, says that a build without the --add-exports flags now fails spotlessJava, and keeps the --rerun-tasks advice for versions up to 21.0.1. To merge with the release that has these changes: until then the pages would promise what the published plugin does not do.
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.
The Gradle plugin now carries the formatter's jars inside it (openjavaformat/open-java-format#20): a build declares nothing for the formatter and needs no repository for it. The native binary is resolved by each project that formats, through its own repositories, so the root project of a multi-project build needs none, and parallel builds work.
~/.gradle/open-java-format-caches; the multi-project example declares its repositories in the subprojects; new sections Build cache and Another formatter version.--add-exportsflags now failsspotlessJava, and the--rerun-tasksadvice stays for versions up to 21.0.1.zensical build --clean --strictreports no issues.To merge with the release that has these changes: until then the pages would promise what the published plugin does not do.