wasyl
09/12/2025, 1:31 AM"-Xwarning-level=<custom_warning>:error" them? Specifically I'm trying to raise the `SUGGEST_CLASS_INJECTION` inspection level to error but I get an e: Warning with name "SUGGEST_CLASS_INJECTION" does not exist error, even if I only add the compiler warning when the plugin is applied:
plugins {
id 'dev.zacsweers.metro'
}
tasks.withType(KotlinCompile).configureEach {
compilerOptions.freeCompilerArgs.addAll(
"-Xwarning-level=SUGGEST_CLASS_INJECTION:error",
)
}
this happens for :compileKotlin tasks in jvm modules. Is it an issue with the compiler plugin or Kotlin? Or my setup?dmitriy.novozhilov
09/12/2025, 6:49 AMZac Sweers
09/12/2025, 7:24 AMwasyl
09/12/2025, 4:48 PM