Skip to content

Commit

Permalink
Enable error loglevel for partial linkage messages (#2507)
Browse files Browse the repository at this point in the history
The change is related to building serialization as a Kotlin user project. See https://youtrack.jetbrains.com/issue/QA-1115 for more details.
  • Loading branch information
FenstonSingel authored Nov 16, 2023
1 parent 8b8c4f8 commit 31d779f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ allprojects {
mavenLocal()

}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile).configureEach {
compilerOptions { freeCompilerArgs.add("-Xpartial-linkage-loglevel=ERROR") }
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile).configureEach {
compilerOptions { freeCompilerArgs.add("-Xpartial-linkage-loglevel=ERROR") }
}
}

def unpublishedProjects = ["benchmark", "guide", "kotlinx-serialization-json-tests"] as Set
Expand Down

0 comments on commit 31d779f

Please sign in to comment.