diff options
Diffstat (limited to 'runners/gradle-plugin/build.gradle.kts')
-rw-r--r-- | runners/gradle-plugin/build.gradle.kts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runners/gradle-plugin/build.gradle.kts b/runners/gradle-plugin/build.gradle.kts index 07f29ae0..f8e519e6 100644 --- a/runners/gradle-plugin/build.gradle.kts +++ b/runners/gradle-plugin/build.gradle.kts @@ -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) |