jw
06/10/2017, 4:19 AMapply plugin: 'org.jetbrains.kotlin.jvm'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
compile deps.kotlin.stdLibJre8
// Expose the embedded annotations for use in the code.
compileOnly 'com.google.auto.service:auto-service:1.0-rc3'
// Allow the processor to run over Kotlin sources.
kapt 'com.google.auto.service:auto-service:1.0-rc3'
}
with a single kotlin file
@AutoService(Processor::class)
class MyProcessor : AbstractProcessor() {
override fun process(annotations: Set<TypeElement>, roundEnv: RoundEnvironment) = TODO()
}