| |
| 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")) |
| compileOnly(project(":compiler:backend.js")) |
| compileOnly(project(":core:descriptors.runtime")) |
| compile(project(":kotlin-scripting-common")) |
| compile(project(":kotlin-scripting-js")) |
| compile(project(":kotlin-util-klib")) |
| compile(project(":kotlin-scripting-jvm")) |
| compile(project(":kotlin-scripting-compiler-impl")) |
| compile(kotlinStdlib()) |
| compileOnly(intellijCoreDep()) { includeJars("intellij-core") } |
| |
| testCompile(project(":compiler:frontend")) |
| testCompile(project(":compiler:plugin-api")) |
| testCompile(project(":compiler:util")) |
| testCompile(project(":compiler:cli")) |
| testCompile(project(":compiler:cli-common")) |
| testCompile(project(":compiler:frontend.java")) |
| testCompile(project(":compiler:backend.js")) |
| testCompile(projectTests(":compiler:tests-common")) |
| testCompile(commonDep("junit:junit")) |
| |
| testImplementation(intellijCoreDep()) { includeJars("intellij-core") } |
| testRuntimeOnly(intellijDep()) { includeJars("jps-model") } |
| } |
| |
| sourceSets { |
| "main" { projectDefault() } |
| "test" { projectDefault() } |
| } |
| |
| tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> { |
| kotlinOptions { |
| languageVersion = "1.3" |
| apiVersion = "1.3" |
| freeCompilerArgs += "-Xskip-metadata-version-check" |
| } |
| } |
| |
| publish() |
| |
| runtimeJar() |
| sourcesJar() |
| javadocJar() |
| |
| testsJar() |
| |
| projectTest(parallel = true) { |
| dependsOn(":dist") |
| workingDir = rootDir |
| systemProperty("kotlin.test.script.classpath", testSourceSet.output.classesDirs.joinToString(File.pathSeparator)) |
| } |