Bump ktfmt to 0.61 and fix `rewriteDryRun` by dayanruben · Pull Request #2804 · diffplug/spotless
This PR fixes the rewriteDryRun command, which was failing due to missing javax.annotation dependencies during compilation of "glue" source sets and a validation error caused by a non-existent OpenRewrite recipe. It also bumps the default ktfmt version to 0.61.
Changes:
- Updated default
ktfmtversion from0.59to0.61inKtfmtStep.java. - Added
com.google.code.findbugs:jsr305tocompileOnlyfor glue source set inlib/build.gradle ktfmtto resolve missingjavax.annotation.NonNulland@Nullableclasses. - Removed the non-existent OpenRewrite recipe
org.openrewrite.java.migrate.util.JavaLangAPIsfromrewrite.ymlto fix validation failures.
Related to #2794