Revert "Revert "Build: enable -Werror in stdlib/core/compiler/plugins modules""

This reverts commit 1300ec3e
This commit is contained in:
Dmitriy Novozhilov
2021-01-28 16:59:47 +03:00
parent 7e3802bde3
commit 0769157a16
5 changed files with 58 additions and 2 deletions
+12
View File
@@ -10,6 +10,8 @@ plugins {
val compilerModules: Array<String> by rootProject.extra
val otherCompilerModules = compilerModules.filter { it != path }
val tasksWithWarnings: List<String> by rootProject.extra
val effectSystemEnabled: Boolean by rootProject.extra
val newInferenceEnabled: Boolean by rootProject.extra
@@ -85,6 +87,16 @@ if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
idea {
this.module.generatedSourceDirs.add(generationRoot)
}
} else {
allprojects {
tasks.withType<KotlinCompile<*>> {
if (path !in tasksWithWarnings) {
kotlinOptions {
allWarningsAsErrors = true
}
}
}
}
}
projectTest(parallel = true) {
+1 -1
View File
@@ -57,7 +57,7 @@ tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
kotlinOptions {
languageVersion = "1.3"
apiVersion = "1.3"
freeCompilerArgs += "-Xskip-prerelease-check"
freeCompilerArgs = freeCompilerArgs - "-progressive" + "-Xskip-prerelease-check"
}
}