[Gradle] Remove exceptions for warnings-as-errors flag enable
^KT-56904 Fixed
This commit is contained in:
committed by
Space Team
parent
11fee106b2
commit
cf1a1693b3
@@ -26,7 +26,6 @@ kotlin {
|
|||||||
"org.jetbrains.kotlin.buildtools.api.ExperimentalBuildToolsApi",
|
"org.jetbrains.kotlin.buildtools.api.ExperimentalBuildToolsApi",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
suppressWarnings = true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-9
@@ -181,12 +181,6 @@ fun Project.configureKotlinCompilationOptions() {
|
|||||||
"-Xno-kotlin-nothing-value-exception",
|
"-Xno-kotlin-nothing-value-exception",
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: fix remaining warnings and remove this property.
|
|
||||||
val tasksWithWarnings = listOf(
|
|
||||||
":kotlin-gradle-plugin:compileCommonKotlin",
|
|
||||||
":kotlin-native:build-tools:compileKotlin"
|
|
||||||
)
|
|
||||||
|
|
||||||
val projectsWithEnabledContextReceivers: List<String> by rootProject.extra
|
val projectsWithEnabledContextReceivers: List<String> by rootProject.extra
|
||||||
val projectsWithOptInToUnsafeCastFunctionsFromAddToStdLib: List<String> by rootProject.extra
|
val projectsWithOptInToUnsafeCastFunctionsFromAddToStdLib: List<String> by rootProject.extra
|
||||||
|
|
||||||
@@ -197,9 +191,7 @@ fun Project.configureKotlinCompilationOptions() {
|
|||||||
if (renderDiagnosticNames) {
|
if (renderDiagnosticNames) {
|
||||||
freeCompilerArgs += "-Xrender-internal-diagnostic-names"
|
freeCompilerArgs += "-Xrender-internal-diagnostic-names"
|
||||||
}
|
}
|
||||||
if (path !in tasksWithWarnings) {
|
allWarningsAsErrors = !kotlinBuildProperties.disableWerror
|
||||||
allWarningsAsErrors = !kotlinBuildProperties.disableWerror
|
|
||||||
}
|
|
||||||
if (project.path in projectsWithEnabledContextReceivers) {
|
if (project.path in projectsWithEnabledContextReceivers) {
|
||||||
freeCompilerArgs += "-Xcontext-receivers"
|
freeCompilerArgs += "-Xcontext-receivers"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user