https://kotlinlang.org logo
#ktor
Title
# ktor
s

sonofblip

07/25/2019, 6:43 PM
Is there a way to apply ktor annotation classes across whole projects? I’m tired of having to put
@KtorExperimentalLocationsAPI
or
@KtorExperimentalAPI
over everything in order to remove IntelliJ warnings.
c

cy

07/25/2019, 6:46 PM
Yes, you can pass it via gradle
s

sonofblip

07/25/2019, 6:52 PM
I was able to do it with this
Copy code
compileKotlin {
    kotlinOptions {
        freeCompilerArgs += "-Xuse-experimental=org.mylibrary.ExperimentalMarker"
    }
}
Thanks!!!
y

Yeray Cabello

07/26/2019, 7:34 AM
@Kristian, you might be interested in this.
k

Kristian

07/26/2019, 8:51 AM
Thanks for the heads up @Yeray Cabello
4 Views