Slackbot
02/03/2022, 3:00 PMMichael Ondrejko
02/03/2022, 3:02 PMmelix
02/03/2022, 3:02 PMMichael Ondrejko
02/03/2022, 3:40 PMmelix
02/03/2022, 3:45 PMpom.xml file is a code smell IMO. So either it means you have custom publications and they should be modeled as such, or it means that the initial declarations were wrong. I cannot really tell from what you are explaining. Maybe there's another way for your particular use case.Vampire
02/03/2022, 4:03 PMwithXml exists because you are not supposed to manipulate it but to fix your model. The only way to still hack-around (still, because withXml also imo is bad), would be to register some doLast action on the generation task that then modifies that actual generated file.
But really, better fix your model so that the generated file is what you expect / need.Michael Ondrejko
02/03/2022, 4:12 PMmelix
02/03/2022, 4:14 PMMichael Ondrejko
02/03/2022, 4:15 PMmelix
02/03/2022, 4:20 PMfromResolutionResult(), you could use fromResolutionOf(yourConfiguration), and have your configuration something which extends, say, runtimeClasspath, and defines its own resolution strategy rules configurations.yourConfiguration.resolutionStrategy { ... do the substitutions here ... }.Michael Ondrejko
02/03/2022, 4:27 PMMichael Ondrejko
02/03/2022, 8:06 PMVampire
02/08/2022, 1:16 AM