Skip to content

Commit 4aa4e14

Browse files
committed
Fix buildSrc Eclipse import issues
Update `buildSrc` so that it imports cleanly into Eclipse with tests that can run inside the IDE. Fixes gh-40041
1 parent ecf89c3 commit 4aa4e14

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

buildSrc/build.gradle

+14-4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ dependencies {
6565
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
6666
}
6767

68+
configurations.all {
69+
exclude group:"org.slf4j", module:"slf4j-api"
70+
exclude group:"ch.qos.logback", module:"logback-classic"
71+
exclude group:"ch.qos.logback", module:"logback-core"
72+
}
73+
6874
gradlePlugin {
6975
plugins {
7076
annotationProcessorPlugin {
@@ -134,8 +140,12 @@ test {
134140
useJUnitPlatform()
135141
}
136142

137-
eclipse.classpath.file.whenMerged {
138-
def jreEntry = entries.find { it.path.contains("org.eclipse.jdt.launching.JRE_CONTAINER") }
139-
jreEntry.entryAttributes['module'] = 'true'
140-
jreEntry.entryAttributes['limit-modules'] = 'java.base'
143+
eclipse {
144+
jdt {
145+
file {
146+
withProperties {
147+
it["org.eclipse.jdt.core.compiler.ignoreUnnamedModuleForSplitPackage"] = "enabled"
148+
}
149+
}
150+
}
141151
}

0 commit comments

Comments
 (0)