• Andy Wilkinson's avatar
    Disable generation of Gradle's module metadata · 4f75ab5f
    Andy Wilkinson authored
    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-19609
    4f75ab5f
Name
Last commit
Last update
.github Loading commit data...
buildSrc Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
gradle Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src/checkstyle Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
build.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...