From 3a38dee1028c03097c7d1009f6cc5c2786fb83f4 Mon Sep 17 00:00:00 2001 From: Ilya Zorin Date: Wed, 28 Dec 2016 22:56:30 +0200 Subject: [PATCH] Update readme with kapt2 for Kotlin support --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b610cb4ce..8643d9c7f 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,13 @@ public abstract class Tweet { } ``` -`Kotlin` +`Kotlin`: + +In order to make annotation processors work with Kotlin you need to add the following to your `build.gradle`: +```groovy +apply plugin: 'kotlin-kapt' +``` + ```kotlin data class Tweet @StorIOSQLiteCreator constructor(@get:StorIOSQLiteColumn(name = "author") val author: String, @get:StorIOSQLiteColumn(name = "content") val content: String)