Maven Publish depending on output of task


(Justin Uang) #1

I would like to publish a yml file to maven, but it looks like only subclasses of AbstractArchiveTask can be used (so zip/tar), if I want the publish task to automatically depend on the task that creates the file to be published. Is there any other way to achieve this?

What’s more troublesome is that I can’t just simply take the publish task and make it depend on the task that generates the yml file, instead I need to look at all the generated publish[artifactname]to[repo] and add all the dependencies manually.


(Chris Doré) #2

(Justin Uang) #3

Cool, this is exactly what I needed!