mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-06-30 00:36:49 +08:00
Merge branch '3.2.x'
This commit is contained in:
commit
97612d5445
|
@ -1,3 +1,7 @@
|
|||
import org.gradle.plugins.ide.eclipse.EclipsePlugin
|
||||
import org.gradle.plugins.ide.eclipse.model.Classpath
|
||||
import org.gradle.plugins.ide.eclipse.model.Library
|
||||
|
||||
plugins {
|
||||
id "java-gradle-plugin"
|
||||
id "maven-publish"
|
||||
|
@ -138,3 +142,19 @@ artifacts {
|
|||
toolchain {
|
||||
maximumCompatibleJavaVersion = JavaLanguageVersion.of(20)
|
||||
}
|
||||
|
||||
plugins.withType(EclipsePlugin) {
|
||||
eclipse {
|
||||
classpath.file { merger ->
|
||||
merger.whenMerged { content ->
|
||||
if (content instanceof Classpath) {
|
||||
content.entries.each { entry ->
|
||||
if (entry instanceof Library && (entry.path.contains("gradle-api-") || entry.path.contains("groovy-"))) {
|
||||
entry.entryAttributes.remove("test")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user