Skip to content

Commit 00f2fa5

Browse files
Abduqodiri Qurbonzodaqurbonzoda
authored andcommitted
Enable allWarningsAsErrors
1 parent a2d5fcd commit 00f2fa5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,8 @@ allprojects {
2424
repositories {
2525
mavenCentral()
2626
}
27+
28+
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
29+
kotlinOptions.allWarningsAsErrors = true
30+
}
2731
}

core/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ kotlin {
5353
resources.setSrcDirs(listOf("$name/resources"))
5454
languageSettings.apply {
5555
// progressiveMode = true
56-
useExperimentalAnnotation("kotlin.Experimental")
56+
optIn("kotlin.RequiresOptIn")
5757
}
5858
}
5959

0 commit comments

Comments
 (0)