Continue switching projects to improved dsl: sourceSets and test running

This commit is contained in:
Ilya Chernikov
2017-08-21 20:53:48 +02:00
parent 336e24b837
commit deda50dbbb
76 changed files with 372 additions and 614 deletions
+8 -13
View File
@@ -1,8 +1,6 @@
apply { plugin("kotlin") }
dependencies {
val compile by configurations
val testCompile by configurations
compile(project(":kotlin-stdlib"))
compile(project(":kotlin-reflect"))
compile(project(":compiler:backend"))
@@ -13,15 +11,12 @@ dependencies {
buildVersion()
}
configureKotlinProjectSourcesDefault()
configureKotlinProjectTestsDefault()
tasks.withType<Test> {
dependsOnTaskIfExistsRec("dist", project = rootProject)
jvmArgs("-ea", "-XX:+HeapDumpOnOutOfMemoryError", "-Xmx1200m", "-XX:+UseCodeCacheFlushing", "-XX:ReservedCodeCacheSize=128m", "-Djna.nosys=true")
maxHeapSize = "1200m"
workingDir = rootDir
systemProperty("idea.is.unit.test", "true")
environment("NO_FS_ROOTS_ACCESS_CHECK", "true")
ignoreFailures = true
sourceSets {
"main" { projectDefault() }
"test" { projectDefault() }
}
projectTest {
dependsOnTaskIfExistsRec("dist", project = rootProject)
workingDir = rootDir
}