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 ktfmt version from 0.59 to 0.61 in KtfmtStep.java.
  • Added com.google.code.findbugs:jsr305 to compileOnly for glue source set in lib/build.gradle ktfmt to resolve missing javax.annotation.NonNull and @Nullable classes.
  • Removed the non-existent OpenRewrite recipe org.openrewrite.java.migrate.util.JavaLangAPIs from rewrite.yml to fix validation failures.

Related to #2794