Adam S
11/27/2022, 10:20 AMAdam S
11/27/2022, 10:27 AMkotlin {
targets.configureEach {
compilations.configureEach {
kotlinOptions {
languageVersion = "1.8"
this.freeCompilerArgs += listOf(
"-explicit-api", "strict",
// "-explicit-api=strict",
)
}
}
}
}
Adam S
11/27/2022, 10:45 AMkotlin {
explicitApi()
}
Although, is it possible to only enable this flag for a single source set? I only want to enable it for some generated code, so when I look at it in IntelliJ there’s fewer warnings.Adam S
11/27/2022, 10:59 AM