File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
buildSrc/src/main/java/org/springframework/gradle/maven Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 6
6
import org .gradle .api .plugins .JavaPlugin ;
7
7
import org .gradle .api .plugins .JavaPluginExtension ;
8
8
import org .gradle .api .publish .PublishingExtension ;
9
- import org .gradle .api .publish .VariantVersionMappingStrategy ;
10
- import org .gradle .api .publish .VersionMappingStrategy ;
11
9
import org .gradle .api .publish .maven .MavenPom ;
12
10
import org .gradle .api .publish .maven .MavenPomDeveloperSpec ;
13
11
import org .gradle .api .publish .maven .MavenPomIssueManagement ;
@@ -25,20 +23,7 @@ public void apply(Project project) {
25
23
public void execute (MavenPublishPlugin mavenPublish ) {
26
24
PublishingExtension publishing = project .getExtensions ().getByType (PublishingExtension .class );
27
25
publishing .getPublications ().withType (MavenPublication .class )
28
- .all ((mavenPublication ) -> {
29
- mavenPublication .versionMapping (new Action <VersionMappingStrategy >() {
30
- @ Override
31
- public void execute (VersionMappingStrategy versionStrategy ) {
32
- versionStrategy .usage ("java-runtime" , new Action <VariantVersionMappingStrategy >() {
33
- @ Override
34
- public void execute (VariantVersionMappingStrategy mappingStrategy ) {
35
- mappingStrategy .fromResolutionResult ();
36
- }
37
- });
38
- }
39
- });
40
- MavenPublishingConventionsPlugin .this .customizePom (mavenPublication .getPom (), project );
41
- });
26
+ .all ((mavenPublication ) -> MavenPublishingConventionsPlugin .this .customizePom (mavenPublication .getPom (), project ));
42
27
MavenPublishingConventionsPlugin .this .customizeJavaPlugin (project );
43
28
}
44
29
});
You can’t perform that action at this time.
0 commit comments