Support `java { toolchain { languageVersion`
- Vorherrschende Sprache
- Java
- Sterne
- 5.6k
- Forks
- 559
- Ø Merge
- 1 T. 13 Std.
- Gemergte PRs (30 T.)
- 34
Beschreibung
Currently, the spotless invocation is inlined into the task execution itself.
https://github.com/diffplug/spotless/blob/main/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTaskImpl.java#L50
Is it possible to instead run a separate main file in `JavaExec`? Gradle has introduced toolchain feature to allow build to control the Java version used for compile and execution which works very well to allow any user's Java version to run the build with a specific one. But unfortunately, this currently doesn't affect Spotless which runs in Gradle itself - for example, this means that a build must become unbuildable on Java 8 to upgrade to the latest googleJavaFormat since it requires higher Java version. It would be nice if this could be avoided.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.