Skip to content

Commit

Permalink
cleanup server opt ins
Browse files Browse the repository at this point in the history
  • Loading branch information
avan1235 committed Mar 26, 2024
1 parent 62ed1dc commit 44d6aa7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
12 changes: 7 additions & 5 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ application {
}

kotlin {
compilerOptions {
optIn = listOf(
"kotlinx.coroutines.DelicateCoroutinesApi",
"kotlinx.serialization.ExperimentalSerializationApi",
)
sourceSets {
main {
languageSettings.apply {
optIn("kotlinx.coroutines.DelicateCoroutinesApi")
optIn("kotlinx.serialization.ExperimentalSerializationApi")
}
}
}
}

Expand Down
5 changes: 5 additions & 0 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ kotlin {
jvm()

sourceSets {
all {
languageSettings.apply {
optIn("kotlinx.serialization.ExperimentalSerializationApi")
}
}
commonMain.dependencies {
implementation(libs.ktor.serialization.kotlinx.cbor)
implementation(libs.ktor.shared.resources)
Expand Down

0 comments on commit 44d6aa7

Please sign in to comment.