Skip to content

Explicitly disable dev/prod tasks based on flag #3358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions solr/ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,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) }
}
Loading