Travis Griggs
02/13/2023, 9:41 PM@kotlin.ExperimentalUnsignedTypes
globally to a whole project, so I don't have to annotate 500+ sites? I had this with gradle compiler options once upon a time, but I think that's evolved and the names may have changed since then (sorry if this belongs in another channel, please direct if so?)Adam S
02/13/2023, 9:43 PMtasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs += listOf(
"-opt-in=kotlin.ExperimentalUnsignedTypes"
)
}
}
because configureEach {}
is usually better https://melix.github.io/blog/2022/05/gradle-laziness.htmlTravis Griggs
02/13/2023, 10:13 PMBig Chungus
02/13/2023, 10:15 PMkotlin.sourceSets.all {
languageSettings.optIn("annotation.package.ClassName")
}
allprojects {}
at the root module buildscriptTravis Griggs
02/13/2023, 11:47 PM