Disable generation of Gradle's module metadata
The way in which we deploy the artifacts (publishing to a Maven repository on the filesystem and then using the Concourse artifactory resource to upload them) is incompatible with Gradle's module metadata generation. The metadata contains an entry, url, that contains the name of the artifact. This will be something like spring-boot-gradle-plugin-2.3.0.BUILD-20200114.095038-1.jar. The -1 in the name is derived from the Maven snapshot build number. It's -1 as the local repository to which the artifact is published is empty and has no maven-metadata.xml file. When the artifact is uploaded to Artifactory there is a maven-metadata.xml file so the build number is different. As a result, the module metadata points to a file that doesn't exist. This leads to problems like this when trying to consume the snapshots: Could not find spring-boot-gradle-plugin-2.3.0.BUILD-20200114.095038-1-2.3.0.BUILD-SNAPSHOT.jar (org.springframework.boot:spring-boot-gradle-plugin:2.3.0.BUILD-SNAPSHOT:20200114.101952-123) Gradle has used the maven-metadata.xml file on the server to determine that 2.3.0.BUILD-SNAPSHOT:20200114.101952-123 is the latest version. It has downloaded the .module file with this version but it points to spring-boot-gradle-plugin-2.3.0.BUILD-20200114.095038-1.jar. That file doesn't exist so the build fails. See gh-19609pull/19711/head
parent
246f5ce8eb
commit
4f75ab5f89
Loading…
Reference in New Issue