This message was deleted.
# community-support
s
This message was deleted.
c
Disable the ones you don’t want, or enable just the ones you do (whichever is easiest). Something like
Copy code
tasks.withType<PublishToMavenRepository>().configureEach {
	onlyIf { // condition here }
}
e
Is there a way to log the reason why it's being skipped?
c
only in comments; nothing in API. There’s a rejected enhancement request.
e
That's unfortunate. Was it actually rejected, or just closed because it was stale?
c
it shows as being closed as “not planned”
e
I think @wolfs had something that automatically did that to issues that were marked as stale.
c
could be.
w
Actually, the issue has been fixed in 7.6.
🎉 2
v
But actually for unconditional disabling or disabling that is determinable at configuration time, I'd probably use
enabled = false
, not
onlyIf { ... }
as then nothing has to be evaluated.