I'm not convinced about this change. Why can't you just use an if statement?
publishing { publications { somePublication(IvyPublication) { if (someCondition) { artefact … } } } } On 13/08/2013, at 2:02 AM, Tim Enderling <t.enderl...@intershop.de> wrote: > *Politely pushing this topic* > > Nobody else interested in adding this feature to Gradle but us? (Did I > mention our contribution was free? :-) ) > >> See the end of >> http://forums.gradle.org/gradle/topics/should_disabling_a_task_automatically_remove_any_artifact_it_might_publish > >> Basically, the proposed idea is to add an onlyIf() to Publication to >> facilitate making dynamic decisions on whether it should be >> published. A patch has been contributed and the author is willing to work >> with us to get it in if we want. > >> It's an interesting use case (listed in the ticket). > >> In some ways this feels preferable to dynamically declaring the publications. > >> -- >> Luke Daley >> Principal Engineer, Gradleware >> http://gradleware.com > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > -- Adam Murdoch Gradle Co-founder http://www.gradle.org VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting http://www.gradleware.com