Exclude Gradle Kotlin runtime from 'sam-with-receiver' plugin.
This should remove warnings on multiple dependencies versions in the build classpath runtime. ^KT-47636 Fixed
This commit is contained in:
@@ -1,41 +1,24 @@
|
|||||||
apply plugin: 'kotlin'
|
plugins {
|
||||||
apply plugin: 'jps-compatible'
|
id "gradle-plugin-common-configuration"
|
||||||
|
id "jps-compatible"
|
||||||
configurePublishing(project)
|
}
|
||||||
|
|
||||||
pill {
|
pill {
|
||||||
variant = 'FULL'
|
variant = 'FULL'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':kotlin-gradle-plugin-api')
|
api project(':kotlin-gradle-plugin-api')
|
||||||
compile project(':kotlin-gradle-plugin-model')
|
api project(':kotlin-gradle-plugin-model')
|
||||||
|
|
||||||
compile kotlinStdlib()
|
|
||||||
compileOnly project(':compiler')
|
compileOnly project(':compiler')
|
||||||
compileOnly project(':kotlin-sam-with-receiver-compiler-plugin')
|
compileOnly project(':kotlin-sam-with-receiver-compiler-plugin')
|
||||||
|
|
||||||
compileOnly gradleApi()
|
|
||||||
|
|
||||||
testCompile gradleApi()
|
testCompile gradleApi()
|
||||||
testCompile "junit:junit:4.12"
|
testCompile "junit:junit:4.12"
|
||||||
|
|
||||||
embedded(project(":kotlin-sam-with-receiver-compiler-plugin")) { transitive = false }
|
embedded(project(":kotlin-sam-with-receiver-compiler-plugin")) { transitive = false }
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(project.compileKotlin.class) {
|
|
||||||
kotlinOptions.languageVersion = "1.3"
|
|
||||||
kotlinOptions.apiVersion = "1.3"
|
|
||||||
kotlinOptions.freeCompilerArgs += [
|
|
||||||
"-Xskip-prerelease-check", "-Xskip-runtime-version-check", "-Xsuppress-version-warnings"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
jar {
|
|
||||||
manifestAttributes(manifest, project)
|
|
||||||
}
|
|
||||||
|
|
||||||
ArtifactsKt.noDefaultJar(project)
|
ArtifactsKt.noDefaultJar(project)
|
||||||
ArtifactsKt.runtimeJar(project, EmbeddableKt.rewriteDefaultJarDepsToShadedCompiler(project, {}), {})
|
ArtifactsKt.runtimeJar(project, EmbeddableKt.rewriteDefaultJarDepsToShadedCompiler(project, {}), {})
|
||||||
configureSourcesJar()
|
|
||||||
configureJavadocJar()
|
|
||||||
|
|||||||
Reference in New Issue
Block a user