commonMain.io.mths.kava.processor.KavaProcessorProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kava-processor-jvm Show documentation
Show all versions of kava-processor-jvm Show documentation
The KSP Kava Annotation Processor to generate validation extensions.
package io.mths.kava.processor
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
import com.google.devtools.ksp.processing.SymbolProcessorProvider
import io.mths.kava.processor.options.KavaOptions
import io.mths.kava.processor.options.of
class KavaProcessorProvider : SymbolProcessorProvider {
override fun create(environment: SymbolProcessorEnvironment) = with(environment) {
KavaProcessor(
LOG = logger,
options = KavaOptions.of(options),
codeGenerator = codeGenerator
)
}
}