hello people! I tried to find a solution through g...
# android
l
hello people! I tried to find a solution through google without success. I am working with the kotlin IR compiler plugin and it is working wonderfully. I have this in my appbuild.gradle
Copy code
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
    compileTask -> compileTask.dependsOn ":custom-create-plugin:createNewPlugin"
}
What I need is to make this compileTask to depend on this task only for release builds. Any ideas? I already tried something like this without success:
Copy code
if (getGradle().getStartParameter().getTaskRequests().toString().contains("release")){
    tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
        compileTask -> compileTask.dependsOn ":custom-create-plugin:createNewPlugin"
    }
}
o
You'll probably have more luck asking in the #gradle channel
🙌 1
l
Actually there was a typo and it works if I use "Release" instead of "release" haha.