47 lines
1.4 KiB
Kotlin
47 lines
1.4 KiB
Kotlin
|
|
description = "Kotlin Android Extensions Compiler"
|
|
|
|
apply { plugin("kotlin") }
|
|
|
|
dependencies {
|
|
compile(ideaSdkCoreDeps("intellij-core"))
|
|
compile(project(":compiler:util"))
|
|
compile(project(":compiler:plugin-api"))
|
|
compile(project(":compiler:frontend"))
|
|
compile(project(":compiler:frontend.java"))
|
|
compile(project(":compiler:backend"))
|
|
compileOnly(project(":kotlin-android-extensions-runtime"))
|
|
|
|
testCompile(project(":compiler:util"))
|
|
testCompile(project(":compiler:backend"))
|
|
testCompile(project(":compiler:cli"))
|
|
testCompile(project(":compiler:tests-common"))
|
|
testCompile(projectTests(":compiler:tests-common"))
|
|
testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
|
|
testCompile(commonDep("junit:junit"))
|
|
testRuntime(ideaPluginDeps("idea-junit", "resources_en", plugin = "junit"))
|
|
testCompile(project(":kotlin-android-extensions-runtime"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
runtimeJar {
|
|
from(getSourceSetsFrom(":kotlin-android-extensions-runtime")["main"].output.classesDirs)
|
|
}
|
|
|
|
dist()
|
|
|
|
ideaPlugin()
|
|
|
|
testsJar {}
|
|
|
|
evaluationDependsOn(":kotlin-android-extensions-runtime")
|
|
|
|
projectTest {
|
|
environment("ANDROID_EXTENSIONS_RUNTIME_CLASSES", getSourceSetsFrom(":kotlin-android-extensions-runtime")["main"].output.classesDirs.asPath)
|
|
dependsOnTaskIfExistsRec("dist", project = rootProject)
|
|
workingDir = rootDir
|
|
} |