Leandro Ocampo
10/14/2020, 4:15 PMtasks.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:
if (getGradle().getStartParameter().getTaskRequests().toString().contains("release")){
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
compileTask -> compileTask.dependsOn ":custom-create-plugin:createNewPlugin"
}
}
okarm
10/14/2020, 4:56 PMLeandro Ocampo
10/14/2020, 5:05 PM