mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
59 lines
1.5 KiB
Kotlin
59 lines
1.5 KiB
Kotlin
|
|
description = "Kotlin Scripting Compiler Plugin"
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(project(":compiler:frontend"))
|
|
compileOnly(project(":compiler:frontend.java"))
|
|
compileOnly(project(":compiler:psi"))
|
|
compileOnly(project(":compiler:plugin-api"))
|
|
compileOnly(project(":compiler:cli"))
|
|
compile(project(":kotlin-scripting-common"))
|
|
compile(project(":kotlin-scripting-jvm"))
|
|
compile(project(":kotlin-stdlib"))
|
|
compileOnly(project(":kotlin-reflect-api"))
|
|
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
|
compileOnly(intellijDep()) { includeJars("asm-all", rootProject = rootProject) }
|
|
|
|
testCompile(project(":compiler:frontend"))
|
|
testCompile(project(":compiler:frontend.script"))
|
|
testCompile(project(":compiler:plugin-api"))
|
|
testCompile(project(":compiler:util"))
|
|
testCompile(project(":compiler:cli"))
|
|
testCompile(project(":compiler:cli-common"))
|
|
testCompile(project(":compiler:frontend.java"))
|
|
testCompile(projectTests(":compiler:tests-common"))
|
|
testCompile(commonDep("junit:junit"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
|
kotlinOptions {
|
|
languageVersion = "1.2"
|
|
apiVersion = "1.2"
|
|
freeCompilerArgs += "-Xskip-metadata-version-check"
|
|
}
|
|
}
|
|
|
|
val jar = runtimeJar {}
|
|
sourcesJar()
|
|
javadocJar()
|
|
|
|
publish()
|
|
|
|
dist()
|
|
|
|
ideaPlugin()
|
|
|
|
projectTest {
|
|
workingDir = rootDir
|
|
}
|