. I can now declare kapt on one onf these buildTypes
kaptDebug(myDependency)
and now when I assemble that build type:
module:assembleDebug
it runs kapt.
How does it work when I don't use the android plugin, but only the pure
kotlin
plugin. How can I create these build configurations so I get a
assembleDebug
? I tried adding `sourceSets`:
Copy code
sourceSets {
debug
release
}
But that doesn't give me a
assembleDebug
task
g
gildor
09/17/2019, 2:58 PM
Debug/Release is Android Plugin specific feature. What kind debug/release to you expect from Java module? Out of the box there is no such thing there
p
Paul Woitaschek
09/17/2019, 6:03 PM
I expect some way to configure that. I want to run dagger reflect on debug builds and the regular dagger on release builds
g
gildor
09/17/2019, 11:21 PM
You can try to use Feature Variant feature from Gradle:
https://docs.gradle.org/current/userguide/feature_variants.html
But honestly not sure that it would be easy integrate with Android plugin
Or, alternatively, just set some Gradle property and add condition to your java build.gradlr