https://kotlinlang.org logo
Title
d

david.bilik

02/02/2017, 10:17 AM
i see, so there is no solution to use java + kotlin in same project when i want to use annotation processing in both languages?
e

Eugenio

02/02/2017, 10:17 AM
david.bilik: yes there is! just use kapt everywhere, it will process java as well
d

david.bilik

02/02/2017, 10:18 AM
Ok, will try that 🙂
If I replace apt with kapt and remove apt from project, the classes are not generated as well
e

Eugenio

02/02/2017, 10:21 AM
are you using kapt by doing
apply plugin: 'kotlin-kapt'
?
try to not apply that plugin, and instead do this:
kapt {
    generateStubs = true
}
this uses the so called "kapt1"
d

david.bilik

02/02/2017, 10:23 AM
Works 🙂
Thanks!
e

Eugenio

02/02/2017, 10:24 AM
np!
the other kapt is still experimental