From 0964a8984bc3185c8f250df6c41596d2a6cb85f3 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`** --- publish-maven.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/publish-maven.gradle b/publish-maven.gradle index 5603bd62cf..e9e16ead1b 100644 --- a/publish-maven.gradle +++ b/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) {