efemoney
06/10/2021, 10:18 AMsolidogen
06/10/2021, 10:23 AMallprojects {
repositories {
...
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = JdkSettings.jvmTarget
freeCompilerArgs = freeCompilerArgs + "-Xopt-in=kotlin.RequiresOptIn"
}
}
}
}
Lets me use @OptIn(ExperimentalPagingApi::class) for given class and I don’t get any warnings after applying thisefemoney
06/10/2021, 10:27 AMsubprojects {
tasks.withType<KotlinCompile<*>>().configureEach {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + listOf(
"-Xopt-in=<ANNOTATION FQCN>",
...
)
}
}
}
efemoney
06/10/2021, 9:27 PM.idea/modules/<moduleNane>/<moduleName.iml>
Who’s responsibility is it to write the kotlin facet to that file? (Android studio OR Android gradle plugin OR gradle intellij plugin OR kotlin gradle plugin? …) 😞ilya.gorbunov
06/10/2021, 11:46 PMefemoney
06/11/2021, 6:40 PMCan it be your case?Honestly, I have no idea. Way out of my depth here. I just know one of my projects where it works has the kotlin facet in the iml. But its possible that that was generated by an older IDE and if I recreate the .idea folder, I will probably face these same issues.
I recently observed that IDEA no longer writes .imls for projects imported from Gradle. AFAIK it stores all the imported information in some place external to the project.Any idea what are my options? 😞
ilya.gorbunov
06/12/2021, 1:10 AMefemoney
06/21/2021, 7:10 AMAlexey Belkov [JB]
06/21/2021, 2:25 PMefemoney
06/21/2021, 2:26 PMefemoney
08/02/2021, 11:25 AM