Skip to content

Commit

Permalink
Do not expose kotlin stdlib in the Gradle plugin dependencies (#2543)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3f4336d)
  • Loading branch information
martinbonnin authored and IgnatBeresnev committed Jul 11, 2022
1 parent abd963b commit e1e114b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions runners/gradle-plugin/build.gradle.kts
Expand Up @@ -30,6 +30,16 @@ dependencies {
)
}

// Gradle will put its own version of the stdlib in the classpath, do not pull our own we will end up with
// warnings like 'Runtime JAR files in the classpath should have the same version'
configurations.api {
exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib")
exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib-jdk7")
exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib-jdk8")
exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib-common")
}


val sourceJar by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets["main"].allSource)
Expand Down
1 change: 1 addition & 0 deletions runners/gradle-plugin/gradle.properties
@@ -0,0 +1 @@
kotlin.stdlib.default.dependency=false

0 comments on commit e1e114b

Please sign in to comment.