Skip to content

about the gradle script of root project #2770

Closed Answered by tianjyan
buffcow asked this question in Q&A
Discussion options

You must be logged in to vote

try this in your root build.gradle.kts

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

...

tasks.withType(KotlinCompile::class.java).all {
    kotlinOptions.jvmTarget = "1.8"
    kotlinOptions.javaParameters = true
}

Replies: 1 comment 1 reply

Comment options

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

Answer selected by buffcow
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