docs/reference/koin-annotations/options.md
The Koin Compiler Plugin supports configuration options to customize its behavior.
Configure the compiler plugin in your build.gradle.kts:
koinCompiler {
userLogs = true
debugLogs = false
dslSafetyChecks = true
}
falsekoinCompiler {
userLogs = true
}
falsekoinCompiler {
debugLogs = true
}
truecreate()) inside lambdas are the only instruction. Helps prevent common mistakes.koinCompiler {
dslSafetyChecks = false // Disable during migration
}
// build.gradle.kts
plugins {
alias(libs.plugins.koin.compiler)
}
koinCompiler {
userLogs = true // Log component detection
debugLogs = false // Verbose logs (off by default)
dslSafetyChecks = true // Validate DSL usage
}
userLogs during development to see which components are detecteddslSafetyChecks enabled (default) for safer DSL usagedebugLogs only when troubleshooting plugin issues