For some reason, Kapt complains that incremental compile is not enabled on one of my modules. However, I see no reason why is shouldn't be.
The warning message when running core:kaptKotlin
[WARN] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: io.github.mdsimmo.cmdmsg.TextPreprocessor (NON_INCREMENTAL).
The error shows that io.github.mdsimmo.cmdmsg.TextPreprocessor
is the module at fault, but I don't understand why it is not incremental?
I've added kapt.incremental.apt=true
in every modules' gradle.properties
(although I shouldn't have to since newer kapt version do that by default).
This is CmdMsgProcessor/build.gradle (the module that contains TextPreProcessor):
plugins {
id 'java'
id "org.jetbrains.kotlin.jvm" version "1.3.72"
id "org.jetbrains.kotlin.kapt" version "1.3.72"
id 'idea'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.+"
implementation project(":cmdMsg")
implementation('com.google.auto.service:auto-service:1.0-rc6')
kapt('com.google.auto.service:auto-service:1.0-rc6')
}
And the cmdMsg/build.gradle (the dependency listed in CmdMsgProcessor/build.gradle
)
plugins {
id 'java'
id "org.jetbrains.kotlin.jvm" version "1.3.72"
id 'idea'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.+"
}
What am I missing?