Martin
06/25/2025, 2:29 PMMavenPublication
. I can add artifacts to that publication that are created lazily by other tasks. Can I do the same for the .pom
file? Have a task that generates the pom file?Vampire
06/25/2025, 2:33 PMdoLast
action that writes out the POM file as you intend it to be.Martin
06/25/2025, 2:35 PMuse the task that creates the POM file, clear its actions, and register an ownOh so there is already a task doing so?action that writes out the POM file as you intend it to be.doLast
Martin
06/25/2025, 2:37 PMVampire
06/25/2025, 2:48 PMVampire
06/25/2025, 2:49 PMgeneratePomFileFor<publicationName>Publication
is the task that is created by the maven-publish
plugin for each publication you registeredMartin
06/25/2025, 2:51 PMpublishToMavenLocal
is a task at the end of the day. I don't see a reason why it wouldn't be able to take its input from other tasks.Vampire
06/25/2025, 2:52 PMVampire
06/25/2025, 2:52 PMMartin
06/25/2025, 2:52 PMVampire
06/25/2025, 2:53 PMMartin
06/25/2025, 2:53 PMpublishAll
that doesn't need to know the actual number of publicationsMartin
06/25/2025, 2:54 PMMartin
06/25/2025, 2:54 PMMartin
06/25/2025, 2:55 PMVampire
06/25/2025, 2:55 PMpublishAll
would still need the tasks generated per publication for example the one to generate the POM, the one to generate the ivy.xml
, the one that generates the GMM, ....Martin
06/25/2025, 2:56 PMVampire
06/25/2025, 2:56 PMMartin
06/25/2025, 2:56 PMVampire
06/25/2025, 2:56 PMMartin
06/25/2025, 2:57 PMMartin
06/25/2025, 2:58 PMMartin
06/25/2025, 2:59 PMPublication
(some intermediate abstraction, that is just taking files)Vampire
06/25/2025, 3:28 PMVampire
06/25/2025, 3:29 PMMartin
06/25/2025, 3:34 PMVampire
06/25/2025, 3:35 PM@AutoService
Vampire
06/25/2025, 3:39 PMMartin
06/25/2025, 3:42 PMVampire
06/25/2025, 3:43 PMMartin
06/25/2025, 3:49 PM