Skip to content

Commit

Permalink
spring-projectsGH-3570: Disable the generation of the Gradle metadata
Browse files Browse the repository at this point in the history
Fixes spring-projects#3570

The module file with the Gradle metadata cannot be published on Maven
Central, which causes issues for some people using a repository manager such
as Artifactory. If it doesn't return a 404 HTTP status, the build fails
instead of ignoring the module.
  • Loading branch information
fpavageau committed May 27, 2021
1 parent 415296a commit ec99044
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gradle/publish-maven.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.artifactory'

tasks.withType(GenerateModuleMetadata) {
enabled = false
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand Down

0 comments on commit ec99044

Please sign in to comment.