Skip to content

Commit

Permalink
Fix #1738, remove kotlin dependencies from compile classpath AND publ…
Browse files Browse the repository at this point in the history
…ished pom.xml, for real this time
  • Loading branch information
sambsnyd committed May 5, 2022
1 parent 2219b90 commit b19b733
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
10 changes: 3 additions & 7 deletions build-src/src/main/kotlin/org.openrewrite.java-base.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ configurations.all {
}

if(name != "rewrite-test") {
listOf("compileClasspath", "runtimeClasspath")
.map(configurations::named)
.forEach { it ->
it.configure {
exclude("org.jetbrains.kotlin")
}
}
tasks.named<KotlinCompile>("compileKotlin").configure {
enabled = false
}
}

tasks.withType<KotlinCompile>().configureEach {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ org.gradle.parallel=true
org.gradle.caching=true
org.gradle.workers.max=6
org.gradle.jvmargs=-Xmx3g
kotlin.stdlib.default.dependency=false
1 change: 1 addition & 0 deletions rewrite-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies {
api("org.junit.jupiter:junit-jupiter-api:latest.release")
api("org.junit.jupiter:junit-jupiter-params:latest.release")

implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("io.github.classgraph:classgraph:latest.release")
Expand Down

0 comments on commit b19b733

Please sign in to comment.