In android I have `buildTypes`: `debug`, `release`...
# gradle
p
In android I have `buildTypes`:
debug
,
release
,
ẁhatever
. 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
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
I expect some way to configure that. I want to run dagger reflect on debug builds and the regular dagger on release builds
g
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