71d8b842fd
This is needed to keep compatibility with old gradle versions which are steel using kotlin 1.2 with experimental coroutines
60 lines
1.8 KiB
Kotlin
60 lines
1.8 KiB
Kotlin
|
|
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"))
|
|
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"))
|
|
runtimeOnly( "org.jetbrains.kotlin:kotlin-coroutines-experimental-compat:1.4.20")
|
|
|
|
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
|
|
}
|