Skip to content

Commit

Permalink
Enable allWarningsAsErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
Abduqodiri Qurbonzoda authored and qurbonzoda committed Dec 27, 2021
1 parent a2d5fcd commit 00f2fa5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ allprojects {
repositories {
mavenCentral()
}

tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
kotlinOptions.allWarningsAsErrors = true
}
}
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ kotlin {
resources.setSrcDirs(listOf("$name/resources"))
languageSettings.apply {
// progressiveMode = true
useExperimentalAnnotation("kotlin.Experimental")
optIn("kotlin.RequiresOptIn")
}
}

Expand Down

0 comments on commit 00f2fa5

Please sign in to comment.