Apache Solr open-source search software
Explicitly disable dev/prod tasks based on flag (#3358)
Christos Malliaridisd04361c3a119
diff --git a/solr/ui/build.gradle.kts b/solr/ui/build.gradle.ktsindex 9acc3e0c375..f0c97343898 100644--- a/solr/ui/build.gradle.kts+++ b/solr/ui/build.gradle.kts@@ -176,3 +176,21 @@ tasks.matching { task ->// and you will see the test tasks being listed there as well, but they will be skipped as// expected}++// Explicitly enable or disable development tasks based on the build variant+// This prevents any invalid task dependencies on assemble task execution+tasks.matching {+ val taskName = it.name.lowercase()+ taskName.contains("wasmjs") && taskName.contains("development")+}.configureEach {+ onlyIf { rootProject.ext["development"] as Boolean }+}++// Explicitly enable or disable production tasks based on the build variant+// This prevents any invalid task dependencies on assemble task execution+tasks.matching {+ val taskName = it.name.lowercase()+ taskName.contains("wasmjs") && taskName.contains("production")+}.configureEach {+ onlyIf { !(rootProject.ext["development"] as Boolean) }+}