pfn / kotlin-plugin

Build kotlin code using sbt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Annotation Processing

ScottPierce opened this issue · comments

Kotlin processes annotations slightly different from Java. The Kotlin gradle plugin requires some special syntax for annotation processors (kapt instead of compile). Would annotation processors for Kotlin with this plugin? If so, does anything special need to be done?

commented

If it works like java, then the annotation processor only needs to be on classpath. If it's a compile-time only dependency, you can use libraryDependencies += group % artifactid % version % "compile-internal"

commented

I assume "compile-internal" is sufficient