diff options
-rw-r--r-- | runners/gradle-plugin/build.gradle.kts | 10 | ||||
-rw-r--r-- | runners/gradle-plugin/gradle.properties | 1 |
2 files changed, 11 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) diff --git a/runners/gradle-plugin/gradle.properties b/runners/gradle-plugin/gradle.properties new file mode 100644 index 00000000..0d6aa7b6 --- /dev/null +++ b/runners/gradle-plugin/gradle.properties @@ -0,0 +1 @@ +kotlin.stdlib.default.dependency=false |