Skip to content

Bump ktfmt to 0.61 and fix rewriteDryRun#2804

Merged
Goooler merged 1 commit intodiffplug:mainfrom
dayanruben:renovate/com.facebook-ktfmt-0.x
Jan 8, 2026
Merged

Bump ktfmt to 0.61 and fix rewriteDryRun#2804
Goooler merged 1 commit intodiffplug:mainfrom
dayanruben:renovate/com.facebook-ktfmt-0.x

Conversation

@dayanruben
Copy link
Contributor

@dayanruben dayanruben commented Jan 7, 2026

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

@dayanruben dayanruben changed the title Fix rewriteDryRun by adding missing annotations and removing invalid recipe Bump ktfmt to 0.61 and fix rewriteDryRun Jan 7, 2026
@Goooler Goooler force-pushed the renovate/com.facebook-ktfmt-0.x branch from ed0a3ee to e972d21 Compare January 8, 2026 13:35
@Goooler Goooler force-pushed the renovate/com.facebook-ktfmt-0.x branch from e972d21 to 5e4da27 Compare January 8, 2026 13:40
@Goooler Goooler enabled auto-merge January 8, 2026 13:44
@Goooler Goooler merged commit d9cd7ef into diffplug:main Jan 8, 2026
20 checks passed
@dayanruben dayanruben deleted the renovate/com.facebook-ktfmt-0.x branch January 8, 2026 14:05
Goooler added a commit that referenced this pull request Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants