This message was deleted.
# community-support
s
This message was deleted.
m
Reading from https://github.com/gradle/gradle/issues/17306, looks like there's
-x
but I need this programmatically
v
enabled = false
?
m
enabled = false
still executes dependencies
I guess there's no way to modify the task graph while building it or something like this
v
Oh, does it? I meant to remember
-x
basically sets enabled to false. Seems I'm wrong then. :-(
m
Yea, looks like it's not exactly similar
v
You can use
Copy code
gradle.startParameter.setExcludedTaskNames(listOf(...))
That is the property
-x
is setting and it works to set it from a build script too, I just tried.
m
Ah, nice!
Works like a charm 👌
👌 1