compilerOption

fun compilerOption(key: String, value: String)(source)

Configures the compiler options for Compose. This is a list of strings that will be passed into the underlying kotlinc invocation. Note that you should not include the plugin prefix, just the simple key/value options directly.

Do

compilerOption("reportsDestination", metricsDir)

Don't

compilerOption("plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination", metricsDir)