Implement Gradle Kotlin DSL build

This commit is contained in:
Ilya Chernikov
2017-08-02 12:26:50 +02:00
parent f5d6e41993
commit 61dfb75e0e
93 changed files with 3737 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
apply { plugin("kotlin") }
dependencies {
val compile by configurations
compile(project(":compiler:util"))
compile(project(":compiler:frontend"))
compile(ideaSdkCoreDeps("trove4j", "intellij-core"))
}
configureKotlinProjectSourcesDefault()
configureKotlinProjectNoTests()
+14
View File
@@ -0,0 +1,14 @@
apply { plugin("kotlin") }
dependencies {
val compile by configurations
compile(project(":compiler:util"))
compile(project(":js:js.ast"))
compile(project(":js:js.translator"))
compile(ideaSdkCoreDeps("intellij-core"))
}
configureKotlinProjectSourcesDefault()
configureKotlinProjectNoTests()
+16
View File
@@ -0,0 +1,16 @@
apply { plugin("kotlin") }
dependencies {
val compile by configurations
compile(project(":compiler:util"))
compile(project(":compiler:frontend"))
compile(project(":js:js.ast"))
compile(project(":js:js.parser"))
compile(project(":js:js.serializer"))
compile(ideaSdkCoreDeps("intellij-core"))
}
configureKotlinProjectSourcesDefault()
configureKotlinProjectNoTests()
+14
View File
@@ -0,0 +1,14 @@
apply { plugin("kotlin") }
dependencies {
val compile by configurations
compile(project(":compiler:util"))
compile(project(":js:js.ast"))
compile(ideaSdkCoreDeps("intellij-core"))
compile(preloadedDeps("json-org"))
}
configureKotlinProjectSourcesDefault()
configureKotlinProjectNoTests()
+15
View File
@@ -0,0 +1,15 @@
apply { plugin("kotlin") }
dependencies {
val compile by configurations
compile(project(":compiler:util"))
compile(project(":compiler:frontend"))
compile(project(":compiler:serialization"))
compile(project(":js:js.ast"))
compile(ideaSdkCoreDeps("intellij-core"))
}
configureKotlinProjectSourcesDefault()
configureKotlinProjectNoTests()
+36
View File
@@ -0,0 +1,36 @@
apply { plugin("kotlin") }
dependencies {
val testCompile by configurations
val testCompileOnly by configurations
val testRuntime by configurations
testCompile(project(":compiler.tests-common"))
testCompile(project(":compiler:frontend"))
testCompile(project(":compiler:cli"))
testCompileOnly(project(":compiler:util"))
testCompile(project(":js:js.translator"))
testCompile(project(":js:js.serializer"))
testCompile(project(":js:js.dce"))
testCompile(ideaSdkDeps("openapi", "idea"))
testRuntime(project(":kotlin-stdlib"))
testRuntime(project(":compiler:backend-common"))
testRuntime(ideaSdkDeps("*.jar"))
}
configureKotlinProjectSources()
configureKotlinProjectTestsDefault()
val test: Test by tasks
test.apply {
dependsOnTaskIfExistsRec("dist", project = rootProject)
dependsOn(":prepare:mock-runtime-for-test:dist")
workingDir = rootDir
systemProperty("idea.is.unit.test", "true")
environment("NO_FS_ROOTS_ACCESS_CHECK", "true")
ignoreFailures = true
}
testsJar {}
+18
View File
@@ -0,0 +1,18 @@
apply { plugin("kotlin") }
dependencies {
val compile by configurations
compile(project(":core"))
compile(project(":compiler:util"))
compile(project(":compiler:frontend"))
compile(project(":compiler:backend-common"))
compile(project(":js:js.ast"))
compile(project(":js:js.frontend"))
compile(project(":js:js.parser"))
compile(ideaSdkCoreDeps("intellij-core"))
}
configureKotlinProjectSources("js.translator/src", "js.inliner/src", sourcesBaseDir = File(rootDir, "js"))
configureKotlinProjectNoTests()