Skip to content

What is the best way to add compiler args with korge gradle plugin? #1457

Answered by soywiz
BioRyajenka asked this question in Q&A
Discussion options

You must be logged in to vote
tasks.withType(KotlinCompile::class).all {
    kotlinOptions.freeCompilerArgs += listOf("-Xcontext-receivers", "-Xskip-prerelease-check")
}

should work fine. This was a temporal problem related to using a pre-release kotlin version.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@BioRyajenka
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by soywiz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants