Hi,
In resolving dependencies from Maven repositories, I wanted to disable using “Gradle Module Metadata”, and wanted to use pom.xml
. Is it possible in Gradle?
Note that what I wanted is not disabling Gradle Module Metadata publication. I wanted to disable resolution.
Context
I have published some Maven artifacts to a (local) Maven repository, with tweaking their pom.xml
. I expected that the tweaked pom.xml
are used when building a Gradle project depending on the artifacts. But actually, their untweaked “Gradle Module Metadata” are used, and my build didn’t go as expected.
I know that re-publishing those Maven artifacts with disabling to publish “Gradle Module Metadata” would resolve the problem, but there are many artifacts published. I wanted to avoid re-publishing all.
Instead, I am wondering if I could just ignore those “Gradle Module Metadata” that have been unintentionally published in the Maven repository when building the local Gradle project.
Is it possible?