Implement Gradle Kotlin DSL build
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
|
||||
apply {
|
||||
plugin("kotlin")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
val compile by configurations
|
||||
val compileOnly by configurations
|
||||
val testCompile by configurations
|
||||
val testCompileOnly by configurations
|
||||
val testRuntime by configurations
|
||||
compile(project(":core"))
|
||||
compile(project(":idea"))
|
||||
compile(project(":compiler:util"))
|
||||
compile(project(":compiler:cli"))
|
||||
compile(project(":compiler:backend"))
|
||||
compile(project(":compiler:frontend"))
|
||||
compile(project(":compiler:frontend.java"))
|
||||
compile(project(":compiler:backend"))
|
||||
compile(project(":js:js.ast"))
|
||||
compile(project(":js:js.frontend"))
|
||||
compile(project(":idea:idea-test-framework"))
|
||||
compile(project(":kotlin-test:kotlin-test-jvm"))
|
||||
compile(projectTests(":build-common"))
|
||||
compile(projectTests(":compiler"))
|
||||
compile(projectTests(":compiler:tests-java8"))
|
||||
compile(projectTests(":compiler:container"))
|
||||
compile(projectTests(":idea"))
|
||||
compile(projectTests(":idea:idea-android"))
|
||||
compile(projectTests(":jps-plugin"))
|
||||
compile(projectTests(":plugins:plugins-tests"))
|
||||
compile(projectTests(":plugins:android-extensions-idea"))
|
||||
compile(projectTests(":plugins:kapt3"))
|
||||
compile(projectTests(":plugins:uast-kotlin"))
|
||||
compile(projectTests(":js:js.tests"))
|
||||
compile(protobufFull())
|
||||
compileOnly(ideaSdkDeps("jps-build-test", subdir = "jps/test"))
|
||||
testCompile(project(":compiler.tests-common"))
|
||||
testCompile(project(":idea:idea-test-framework")) { isTransitive = false }
|
||||
testCompile(project(":compiler:incremental-compilation-impl"))
|
||||
testCompile(project(":plugins:kapt3"))
|
||||
testCompile(commonDep("junit:junit"))
|
||||
testCompile(ideaSdkDeps("openapi", "idea"))
|
||||
testCompile(preloadedDeps("uast-tests"))
|
||||
testRuntime(ideaSdkDeps("*.jar"))
|
||||
testRuntime(ideaPluginDeps("idea-junit", "resources_en", plugin = "junit"))
|
||||
testRuntime(ideaPluginDeps("IntelliLang", plugin = "IntelliLang"))
|
||||
testRuntime(ideaPluginDeps("jcommander", "testng", "testng-plugin", "resources_en", plugin = "testng"))
|
||||
testRuntime(ideaPluginDeps("copyright", plugin = "copyright"))
|
||||
testRuntime(ideaPluginDeps("properties", "resources_en", plugin = "properties"))
|
||||
testRuntime(ideaPluginDeps("java-i18n", plugin = "java-i18n"))
|
||||
testRuntime(ideaPluginDeps("*.jar", plugin = "gradle"))
|
||||
testRuntime(ideaPluginDeps("*.jar", plugin = "Groovy"))
|
||||
testRuntime(ideaPluginDeps("coverage", "jacocoant", plugin = "coverage"))
|
||||
testRuntime(ideaPluginDeps("java-decompiler", plugin = "java-decompiler"))
|
||||
testRuntime(ideaPluginDeps("*.jar", plugin = "maven"))
|
||||
testRuntime(ideaPluginDeps("*.jar", plugin = "android"))
|
||||
}
|
||||
|
||||
configureKotlinProjectSourcesDefault()
|
||||
configureKotlinProjectTestsDefault()
|
||||
|
||||
|
||||
tasks.withType<Test> {
|
||||
workingDir = rootDir
|
||||
systemProperty("idea.is.unit.test", "true")
|
||||
systemProperty("NO_FS_ROOTS_ACCESS_CHECK", "true")
|
||||
ignoreFailures = true
|
||||
}
|
||||
Reference in New Issue
Block a user