Adam
02/16/2026, 7:43 PMorg.gradle.api.publish.maven.MavenPublication is it possible to programatically get the dependencies that will eventually be used to create the pom.xml or GMM .module files? I want to implement a custom up-to-date check that post-processes an arbitrary org.gradle.api.publish.maven.tasks.PublishToMavenRepository task, so a task only re-runs if the dependencies change.John
02/16/2026, 9:55 PMruntimeElements configuration contains theseAdam
02/16/2026, 10:19 PMMartin
02/16/2026, 10:49 PMpom.xlm or .module files are inputs to your task and nothing changed then your task should be up-to-dateMartin
02/16/2026, 10:49 PMAdam
02/16/2026, 10:55 PMAdam
02/16/2026, 10:57 PMGenerateModuleMetadata for each publication.Martin
02/16/2026, 11:37 PMI found a bug where if the dependencies of a project changes then the publication doesn’t re-run.I’ll upvote that issue
Martin
02/16/2026, 11:38 PMMartin
02/16/2026, 11:39 PMGenerateModuleMetadata sounds reasonnableVampire
02/17/2026, 7:43 AMPhilip W
02/17/2026, 5:59 PMVampire
02/17/2026, 6:18 PMPhilip W
02/17/2026, 6:19 PMMartin
02/17/2026, 6:23 PMMartin
02/17/2026, 6:24 PM