diff --git a/README.md b/README.md index fc601b4..0b96c02 100644 --- a/README.md +++ b/README.md @@ -528,8 +528,8 @@ data class BlackjackHand( The codegen adapter requires that your Kotlin types and their properties be either `internal` or `public` (this is Kotlin’s default visibility). -Kotlin codegen has no additional runtime dependency. You’ll need to add the following to your build -to enable the annotation processor: +Kotlin codegen has no additional runtime dependency. You’ll need to [enable kapt][kapt] and then +add the following to your build to enable the annotation processor: ```xml @@ -618,3 +618,4 @@ License [okhttp]: https://github.com/square/okhttp/ [gson]: https://github.com/google/gson/ [javadoc]: https://square.github.io/moshi/1.x/moshi/ + [kapt]: https://kotlinlang.org/docs/reference/kapt.html \ No newline at end of file diff --git a/kotlin/codegen/pom.xml b/kotlin/codegen/pom.xml index 662434f..296686e 100644 --- a/kotlin/codegen/pom.xml +++ b/kotlin/codegen/pom.xml @@ -22,6 +22,11 @@ org.jetbrains.kotlin kotlin-stdlib + + com.squareup + kotlinpoet + 0.7.0 + com.google.auto auto-common @@ -33,11 +38,6 @@ 1.0-rc4 provided - - com.squareup - kotlinpoet - 0.7.0 - junit junit @@ -151,6 +151,36 @@ false + + org.apache.maven.plugins + maven-shade-plugin + 3.1.1 + + + package + + shade + + + + + com.squareup:kotlinpoet + + + + + + + + + com.squareup.kotlinpoet + com.squareup.moshi.kotlinpoet + + + + + +