From f290c340f3e06f7b97b190f96a0ecf742a8e841c Mon Sep 17 00:00:00 2001 From: Frank Pavageau Date: Thu, 27 May 2021 18:19:02 +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. **Cherry-pick to `5.4.x` & `5.3.x`** --- gradle/publish-maven.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gradle/publish-maven.gradle b/gradle/publish-maven.gradle index ae53850d55..3c386ab927 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) {