Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 88d801e

Browse files
committedMar 18, 2025·
Merge branch '4.0.x'
Closes gh-1505
2 parents 03edc30 + bee8398 commit 88d801e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

‎gradle/plugins/conventions-plugin/src/main/java/org/springframework/ws/gradle/conventions/MavenPublishPluginConventions.java

+8-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import org.gradle.api.publish.PublishingExtension;
2323
import org.gradle.api.publish.maven.MavenPublication;
2424
import org.gradle.api.publish.maven.plugins.MavenPublishPlugin;
25+
import org.gradle.api.publish.tasks.GenerateModuleMetadata;
2526

2627
/**
2728
* Conventions for the {@link MavenPublishPlugin}.
@@ -41,13 +42,13 @@ void apply(Project project) {
4142
(variantStrategy) -> variantStrategy.fromResolutionOf("runtimeClasspath"));
4243
strategy.usage("java-runtime", (variantStrategy) -> variantStrategy.fromResolutionResult());
4344
});
44-
configurePom(project, publication);
45+
configure(project, publication);
4546
});
4647
});
4748
project.getPlugins().withType(JavaPlatformPlugin.class).all((javaPlatformPlugin) -> {
4849
publishing.getPublications().create("maven", MavenPublication.class, (publication) -> {
4950
publication.from(project.getComponents().getByName("javaPlatform"));
50-
configurePom(project, publication);
51+
configure(project, publication);
5152
});
5253
});
5354
}
@@ -62,6 +63,11 @@ void configureRepositories(Project project, PublishingExtension publishing) {
6263
}
6364
}
6465

66+
void configure(Project project, MavenPublication mavenPublication) {
67+
configurePom(project, mavenPublication);
68+
project.getTasks().withType(GenerateModuleMetadata.class, (generate) -> generate.setEnabled(false));
69+
}
70+
6571
void configurePom(Project project, MavenPublication mavenPublication) {
6672
String organizationName = "Broadcom Inc.";
6773
String organizationUrl = "https://www.spring.io";

0 commit comments

Comments
 (0)
Please sign in to comment.