diff --git a/runners/gradle-plugin/build.gradle.kts b/runners/gradle-plugin/build.gradle.kts index 07f29ae038..f8e519e647 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) diff --git a/runners/gradle-plugin/gradle.properties b/runners/gradle-plugin/gradle.properties new file mode 100644 index 0000000000..0d6aa7b61f --- /dev/null +++ b/runners/gradle-plugin/gradle.properties @@ -0,0 +1 @@ +kotlin.stdlib.default.dependency=false