2509dfb287
now regular, unshaded libs, are named with suffix `-unshaded`, while former `-embeddable` ones named without any suffix. This will encoursge use of the shaded libs by default, avoiding conflicts with 3-party libs packed into the `kotlin-compiler`. Note, that only the "frontline" libs are renamed to avoid switching problems, the ones that not normally used directly are left as is, including the `kotlin-compiler` itself.
42 lines
1.1 KiB
Kotlin
42 lines
1.1 KiB
Kotlin
|
|
description = "Kotlin Scripting Compiler extension providing code completion and static analysis"
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
publish()
|
|
|
|
dependencies {
|
|
compile(project(":kotlin-script-runtime"))
|
|
compile(kotlinStdlib())
|
|
compileOnly(project(":idea:ide-common"))
|
|
compile(project(":kotlin-scripting-common"))
|
|
compile(project(":kotlin-scripting-jvm"))
|
|
compileOnly(project(":kotlin-scripting-compiler-unshaded"))
|
|
compileOnly(project(":compiler:cli"))
|
|
compileOnly(project(":kotlin-reflect-api"))
|
|
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
|
publishedRuntime(project(":kotlin-compiler"))
|
|
publishedRuntime(project(":kotlin-scripting-compiler-unshaded"))
|
|
publishedRuntime(project(":kotlin-reflect"))
|
|
publishedRuntime(commonDep("org.jetbrains.intellij.deps", "trove4j"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { }
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
|
kotlinOptions {
|
|
freeCompilerArgs += "-Xskip-metadata-version-check"
|
|
freeCompilerArgs += "-Xallow-kotlin-package"
|
|
}
|
|
}
|
|
|
|
standardPublicJars()
|