Skip to content

Commit 5a9fb64

Browse files
committed
fix: stop including embedded compiler in ktlint tasks
1 parent 5388018 commit 5a9fb64

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

build-plugins/build-support/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ repositories {
1919

2020
dependencies {
2121
// make our custom lint rules available to the buildscript classpath
22-
runtimeOnly(project(":ktlint-rules"))
22+
runtimeOnly(project(":ktlint-rules")) {
23+
// Ensure that kotlin-compiler-embeddable isn't included in the buildscript classpath in consuming modules
24+
exclude(group = "org.jetbrains.kotlin", module = "kotlin-compiler-embeddable")
25+
}
26+
2327
implementation(libs.nexusPublishPlugin)
2428
compileOnly(gradleApi())
2529
implementation("aws.sdk.kotlin:s3:1.1.+")

build-plugins/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/dsl/CodeStyle.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ fun Project.configureLinting(lintPaths: List<String>) {
2626
attributes {
2727
attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling.EXTERNAL))
2828
}
29+
30+
// Ensure that kotlin-compiler-embeddable isn't included in the buildscript classpath in consuming modules
31+
exclude(group = "org.jetbrains.kotlin", module = "kotlin-compiler-embeddable")
2932
}
3033
}
3134

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ dependencies {
5151
attributes {
5252
attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling.EXTERNAL))
5353
}
54+
55+
// Ensure that kotlin-compiler-embeddable isn't included in the buildscript classpath
56+
exclude(group = "org.jetbrains.kotlin", module = "kotlin-compiler-embeddable")
5457
}
58+
5559
ktlint(project(":ktlint-rules"))
5660
}
5761

0 commit comments

Comments
 (0)