database: add required flag for @OptIn

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-06-05 14:52:32 +05:30
parent 9478ba3c90
commit cf48139405
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -6,7 +6,13 @@ plugins {
kotlin { kotlin {
android() android()
jvm("desktop") { compilations.all { kotlinOptions.jvmTarget = "11" } } jvm("desktop") {
compilations.all {
kotlinOptions.jvmTarget = "11"
kotlinOptions.freeCompilerArgs =
kotlinOptions.freeCompilerArgs + listOf("-Xopt-in=kotlin.RequiresOptIn")
}
}
sourceSets { sourceSets {
// Workaround for: // Workaround for:
// //