Skip to content

Commit

Permalink
chore(gradle): fix kotlin compiler args
Browse files Browse the repository at this point in the history
  • Loading branch information
xeruf committed Aug 21, 2023
1 parent 6007a5f commit 6d4f1e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
socha.gameName=penguins
socha.gameName=mississippi
socha.version.year=24
socha.version.minor=00
socha.version.patch=03
9 changes: 5 additions & 4 deletions gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,11 @@ subprojects {
jvmTarget = javaTargetVersion.toString()
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}

compileTestKotlin.get().kotlinOptions {
freeCompilerArgs = freeCompilerArgs.plus("-Xopt-in=kotlin.RequiresOptIn")
if(name.contains("test", true)) {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs.plus("-Xopt-in=kotlin.RequiresOptIn")
}
}
}
}
}
Expand Down

0 comments on commit 6d4f1e3

Please sign in to comment.