File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
buildSrc/src/main/java/org/springframework/gradle/maven Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 1
1
package org .springframework .gradle .maven ;
2
2
3
- import io .spring .gradle .propdeps .PropDepsPlugin ;
4
3
import org .gradle .api .Action ;
5
4
import org .gradle .api .Plugin ;
6
5
import org .gradle .api .Project ;
7
- import org .gradle .api .component .AdhocComponentWithVariants ;
8
- import org .gradle .api .plugins .JavaBasePlugin ;
9
6
import org .gradle .api .plugins .JavaPlugin ;
10
7
import org .gradle .api .plugins .JavaPluginExtension ;
11
8
import org .gradle .api .publish .PublishingExtension ;
18
15
import org .gradle .api .publish .maven .MavenPublication ;
19
16
import org .gradle .api .publish .maven .plugins .MavenPublishPlugin ;
20
17
21
- import java .util .function .Consumer ;
22
-
23
18
public class MavenPublishingConventionsPlugin implements Plugin <Project > {
24
19
@ Override
25
20
public void apply (Project project ) {
@@ -32,13 +27,6 @@ public void execute(MavenPublishPlugin mavenPublish) {
32
27
MavenPublishingConventionsPlugin .this .customizeJavaPlugin (project );
33
28
}
34
29
});
35
- project .getPlugins ().withType (PropDepsPlugin .class ).forEach (new Consumer <PropDepsPlugin >() {
36
- @ Override
37
- public void accept (PropDepsPlugin plugin ) {
38
- AdhocComponentWithVariants component = (AdhocComponentWithVariants ) project .getComponents ().findByName ("java" );
39
- component .addVariantsFromConfiguration (project .getConfigurations ().getByName ("optional" ), (details ) -> details .mapToOptional ());
40
- }
41
- });
42
30
}
43
31
44
32
private void customizePom (MavenPom pom , Project project ) {
You can’t perform that action at this time.
0 commit comments