Philip W
11/02/2024, 10:54 AMThomas Broyer
11/02/2024, 11:02 AMPhilip W
11/02/2024, 11:12 AMMartin
11/02/2024, 11:38 AMuseGlobalSubstitutionRules (doc) ? This is specifically for included build but maybe it also works for the same build? Sounds like a stretch but worth a try?Philip W
11/02/2024, 11:43 AMMartin
11/02/2024, 11:44 AMMartin
11/02/2024, 11:46 AMproject.group = "thisisagroupidtoconfusegradle"
And use the "good" one only in publishing:
publishing {
publications.create("foo", MavenPublication::class.java) {
pom {
groupId = "goodGroupIdHere"
// ...
}
}
}
This is ugly and breaking including your build but this part can be workarounded using custom resolution rules I believeVampire
11/02/2024, 3:21 PMpreferProjectModules(), so actually setting the version to something lower than what you want to get from external would be better as then you do not use manual substitution rules even if you include the build somewhere elseVampire
11/02/2024, 3:29 PM