hello people! I am working with the kotlin IR comp...
# gradle
l
hello people! 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 with 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"
    }
}
But I am wondering if there is a better way or this is good enough?