Skip to content

Support ktfmt 0.65 - #3135

Merged
nedtwigg merged 1 commit into
diffplug:mainfrom
Goooler:ktfmt-065
Oct 8, 2026
Merged

nedtwigg merged 1 commit into
diffplug:mainfrom
Goooler:ktfmt-065

Conversation

@Goooler

@Goooler Goooler commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

ktfmt 0.65 moved to the org.jetbrains.kotlinx:ktfmt coordinate and the org.jetbrains.kotlinx.ktfmt package, and its formatter now takes a KotlinCode with an explicit FileType.

  • Compile the ktfmt glue against 0.65 and pass FileType.SCRIPT for .kts files.
  • Resolve com.facebook:ktfmt for versions before 0.65 and format them via the reflection-based compat path, using FormattingOptions.Builder for 0.63/0.64.
  • Pin ktfmt 0.64 for the repo's own formatting until the released plugin supports 0.65.

Closes #3125.

@Goooler
Goooler force-pushed the ktfmt-065 branch 3 times, most recently from 9a0d625 to c1da849 Compare October 8, 2026 03:27
ktfmt 0.65 moved to the `org.jetbrains.kotlinx:ktfmt` coordinate and the `org.jetbrains.kotlinx.ktfmt` package, and its formatter now takes a `KotlinCode` with an explicit `FileType`.

- Compile the ktfmt glue against 0.65 and pass `FileType.SCRIPT` for `.kts` files.
- Resolve `com.facebook:ktfmt` for versions before 0.65 and format them via the reflection-based compat path, using `FormattingOptions.Builder` for 0.63/0.64.
- Pin ktfmt 0.64 for the repo's own formatting until the released plugin supports 0.65.
@nedtwigg
nedtwigg merged commit 5bc422a into diffplug:main Oct 8, 2026
19 checks passed
@Goooler
Goooler deleted the ktfmt-065 branch October 8, 2026 21:31
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.

ktfmt changes groupId to "org.jetbrains" starting with version 0.65

2 participants