https://kotlinlang.org logo
s

serebit

10/02/2020, 11:31 PM
Is it possible to disable publication for a specific target while still having it enabled overall?
I'd like to add a target to one of my projects, but it's currently missing functionality due to a dependency, and I don't want that target to be published along with the rest when I push a new version.
m

msink

10/02/2020, 11:50 PM
tasks.withType<AbstractPublishToMaven> { onlyIf { !name.startsWith("publishSpecificTarget") } }
🎉 1
7 Views