Enable contracts in the 'compiler' module

This commit is contained in:
Dmitry Savvinov
2018-02-01 12:20:51 +03:00
parent 19beaf57a7
commit 7e512ba018
4 changed files with 17 additions and 2 deletions
+13
View File
@@ -1,6 +1,7 @@
import java.io.File
import org.gradle.api.tasks.bundling.Jar
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
apply { plugin("kotlin") }
@@ -9,6 +10,18 @@ jvmTarget = "1.6"
val compilerModules: Array<String> by rootProject.extra
val otherCompilerModules = compilerModules.filter { it != path }
val effectSystemEnabled: Boolean by rootProject.extra
if (effectSystemEnabled) {
allprojects {
tasks.withType<KotlinCompile<*>> {
kotlinOptions {
freeCompilerArgs += listOf("-Xeffect-system")
}
}
}
}
val depDistProjects = listOf(
":kotlin-script-runtime",
":kotlin-stdlib",