Skip to content

Commit

Permalink
Finally got rid of this warning about deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
NovaFox161 committed Dec 27, 2024
1 parent 4f08add commit ea31fec
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.gradle.api.tasks.wrapper.Wrapper.DistributionType.ALL
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand Down Expand Up @@ -138,11 +139,9 @@ allprojects {
subprojects {
tasks {
withType<KotlinCompile> {
@Suppress("DEPRECATION")
// FIXME: This is marked as deprecated but the related link does not seem to work, and no quick fix is available
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = java.targetCompatibility.majorVersion
compilerOptions {
freeCompilerArgs.set(listOf("-Xjsr305=strict"))
jvmTarget.set(JvmTarget.fromTarget(java.targetCompatibility.majorVersion))
}
}
}
Expand Down

0 comments on commit ea31fec

Please sign in to comment.