Skip to content

Commit

Permalink
exclude ktfmt transitive kotlin dependencies to prevent compatibility…
Browse files Browse the repository at this point in the history
… issues with kotlin-compiler-embedded
  • Loading branch information
simonhauck committed Jan 7, 2025
1 parent a37c466 commit d13f726
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions plugin-build/plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ tasks.withType<PluginUnderTestMetadata>().configureEach {
}

dependencies {
compileOnly(libs.ktfmt)
compileOnly(libs.ktfmt){
// isTransitive = false
exclude("org.jetbrains.kotlin")
}
implementation(libs.diffUtils)

compileOnly(gradleApi())
Expand All @@ -55,7 +58,10 @@ dependencies {
testImplementation(libs.jupiter)
testImplementation(libs.truth)

testImplementation(libs.ktfmt)
testImplementation(libs.ktfmt){
// isTransitive = false
exclude(group = "org.jetbrains.kotlin")
}
}

@Suppress("UnstableApiUsage")
Expand Down

0 comments on commit d13f726

Please sign in to comment.