| |
| description = "Kotlin Compiler Infrastructure for Scripting" |
| |
| 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:ir.serialization.js")) |
| compile(project(":kotlin-scripting-common")) |
| compile(project(":kotlin-scripting-jvm")) |
| compile(kotlinStdlib()) |
| compileOnly(project(":kotlin-reflect-api")) |
| compile(commonDep("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false } |
| compileOnly(intellijCoreDep()) { includeJars("intellij-core") } |
| compileOnly(intellijDep()) { includeJars("asm-all", rootProject = rootProject) } |
| |
| // FIXME: drop after removing references to LocalFileSystem they don't exist in intellij-core |
| compileOnly(intellijDep()) { includeJars("platform-api") } |
| |
| runtimeOnly(project(":kotlin-reflect")) |
| |
| 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(projectTests(":compiler:tests-common")) |
| testCompile(commonDep("junit:junit")) |
| } |
| |
| sourceSets { |
| "main" { projectDefault() } |
| "test" { projectDefault() } |
| } |
| |
| tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> { |
| kotlinOptions { |
| freeCompilerArgs += "-Xskip-metadata-version-check" |
| } |
| } |
| |
| publish() |
| |
| runtimeJar() |
| sourcesJar() |
| javadocJar() |
| |
| projectTest { |
| workingDir = rootDir |
| } |