File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
buildSrc/src/main/java/org/springframework/boot/build Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 17
17
package org .springframework .boot .build ;
18
18
19
19
import org .gradle .api .Project ;
20
+ import org .gradle .api .plugins .JavaBasePlugin ;
20
21
import org .gradle .plugins .ide .api .XmlFileContentMerger ;
21
22
import org .gradle .plugins .ide .eclipse .EclipsePlugin ;
22
23
import org .gradle .plugins .ide .eclipse .model .Classpath ;
34
35
class EclipseConventions {
35
36
36
37
void apply (Project project ) {
37
- project .getPlugins ().withType (EclipsePlugin .class , (eclipse ) -> {
38
- EclipseModel eclipseModel = project .getExtensions ().getByType (EclipseModel .class );
39
- eclipseModel .classpath (this ::configureClasspath );
40
- });
38
+ project .getPlugins ()
39
+ .withType (EclipsePlugin .class ,
40
+ (eclipse ) -> project .getPlugins ().withType (JavaBasePlugin .class , (javaBase ) -> {
41
+ EclipseModel eclipseModel = project .getExtensions ().getByType (EclipseModel .class );
42
+ eclipseModel .classpath (this ::configureClasspath );
43
+ }));
41
44
}
42
45
43
46
private void configureClasspath (EclipseClasspath classpath ) {
You can’t perform that action at this time.
0 commit comments