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 1717package org .springframework .boot .build ;
1818
1919import org .gradle .api .Project ;
20+ import org .gradle .api .plugins .JavaBasePlugin ;
2021import org .gradle .plugins .ide .api .XmlFileContentMerger ;
2122import org .gradle .plugins .ide .eclipse .EclipsePlugin ;
2223import org .gradle .plugins .ide .eclipse .model .Classpath ;
3435class EclipseConventions {
3536
3637 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+ }));
4144 }
4245
4346 private void configureClasspath (EclipseClasspath classpath ) {
You can’t perform that action at this time.
0 commit comments