Skip to content

Commit d01c44a

Browse files
committed
Merge branch '3.2.x' into 3.3.x
2 parents adad8a3 + d2f7442 commit d01c44a

File tree

1 file changed

+20
-0
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin

1 file changed

+20
-0
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
15
plugins {
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+
}

0 commit comments

Comments
 (0)