File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ import org.gradle.plugins.ide.eclipse.EclipsePlugin
2+ import org.gradle.plugins.ide.eclipse.model.Classpath
3+ import org.gradle.plugins.ide.eclipse.model.Library
4+
15plugins {
26 id " java-gradle-plugin"
37 id " maven-publish"
@@ -200,3 +204,19 @@ publishing {
200204 }
201205 }
202206}
207+
208+ plugins. withType(EclipsePlugin ) {
209+ eclipse {
210+ classpath. file { merger ->
211+ merger. whenMerged { content ->
212+ if (content instanceof Classpath ) {
213+ content. entries. each { entry ->
214+ if (entry instanceof Library && (entry. path. contains(" gradle-api-" ) || entry. path. contains(" groovy-" ))) {
215+ entry. entryAttributes. remove(" test" )
216+ }
217+ }
218+ }
219+ }
220+ }
221+ }
222+ }
You can’t perform that action at this time.
0 commit comments