Ned Twigg
Ned Twigg
My `java --version` is ``` openjdk 21.0.4 2024-07-16 LTS OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode) ``` how bout yours?
Ah, sorry, this reproduces 100% for me. `./gradlew spotlessApply` always works, but running just `lib-extra` on its own always fails. If you run `spotlessApply` on the whole project, then the...
This if fixed in plugin-gradle `7.0.1`
JGit 7 bumps the required JRE to 17, which seems too high for us for now.
Gradle 8.10.2 is now generating warnings that JVM pre-17 has been deprecated. So we'll be able to bump this sooner than I thought!
- This is blocked on #2375
- we should undo this in this PR https://github.com/diffplug/spotless/commit/0c66cb027d4d190ae27676ed04afe0327c348c07 - this new JGit should fix this also #1765 - and hopefully #2514 won't be necessary anymore also
Published in `plugin-gradle 8.0.0` and `plugin-maven 3.0.0`.
For Gradle, you can just create a FormatterStep and add it. https://github.com/diffplug/spotless/blob/b2a2cbb8b6026397c0adb8cb8b3571e399276f9b/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/FormatExtension.java#L350-L358 For Maven, the problem is the DSL. How do you configure which targets the new step applies to?...