From ec99044a985c0fdab0ecdab69160fabacdb725bb Mon Sep 17 00:00:00 2001 From: Frank Pavageau Date: Thu, 27 May 2021 14:43:30 +0200 Subject: [PATCH] GH-3570: Disable the generation of the Gradle metadata Fixes spring-projects/spring-integration#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. --- gradle/publish-maven.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gradle/publish-maven.gradle b/gradle/publish-maven.gradle index ae53850d55d..3c386ab9274 100644 --- a/gradle/publish-maven.gradle +++ b/gradle/publish-maven.gradle @@ -1,6 +1,10 @@ apply plugin: 'maven-publish' apply plugin: 'com.jfrog.artifactory' +tasks.withType(GenerateModuleMetadata) { + enabled = false +} + publishing { publications { mavenJava(MavenPublication) {