File tree Expand file tree Collapse file tree 3 files changed +26
-9
lines changed
gradle/plugins/common/src/main/kotlin Expand file tree Collapse file tree 3 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -53,15 +53,6 @@ eclipse {
53
53
entries.removeIf { it is ProjectDependency && it.path.equals(" /code-generator-model" ) }
54
54
entries.filterIsInstance<SourceFolder >().forEach {
55
55
it.excludes.add(" **/module-info.java" )
56
- if (project.name == " platform-tests" && it.path == " src/test/resources" ) {
57
- // Exclude Foo.java and FooBar.java in the modules-2500 folder.
58
- it.excludes.add(" **/Foo*.java" )
59
- }
60
- if (project.name == " jupiter-tests" && it.path == " src/test/java" ) {
61
- // Exclude test classes that depend on compiled Kotlin code.
62
- it.excludes.add(" **/AtypicalJvmMethodNameTests.java" )
63
- it.excludes.add(" **/TestInstanceLifecycleKotlinTests.java" )
64
- }
65
56
}
66
57
entries.filterIsInstance<ProjectDependency >().forEach {
67
58
it.entryAttributes.remove(" module" )
Original file line number Diff line number Diff line change 1
1
import org.gradle.api.tasks.PathSensitivity.RELATIVE
2
+ import org.gradle.plugins.ide.eclipse.model.Classpath
3
+ import org.gradle.plugins.ide.eclipse.model.SourceFolder
2
4
3
5
plugins {
4
6
id(" junitbuild.code-generator" )
@@ -41,3 +43,16 @@ tasks {
41
43
}
42
44
}
43
45
}
46
+
47
+ eclipse {
48
+ classpath.file.whenMerged {
49
+ this as Classpath
50
+ entries.filterIsInstance<SourceFolder >().forEach {
51
+ if (it.path == " src/test/java" ) {
52
+ // Exclude test classes that depend on compiled Kotlin code.
53
+ it.excludes.add(" **/AtypicalJvmMethodNameTests.java" )
54
+ it.excludes.add(" **/TestInstanceLifecycleKotlinTests.java" )
55
+ }
56
+ }
57
+ }
58
+ }
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import junitbuild.extensions.capitalized
2
2
import junitbuild.extensions.dependencyProject
3
3
import org.gradle.api.tasks.PathSensitivity.RELATIVE
4
4
import org.gradle.internal.os.OperatingSystem
5
+ import org.gradle.plugins.ide.eclipse.model.Classpath
6
+ import org.gradle.plugins.ide.eclipse.model.SourceFolder
5
7
6
8
plugins {
7
9
id(" junitbuild.java-library-conventions" )
@@ -143,6 +145,15 @@ eclipse {
143
145
classpath {
144
146
plusConfigurations.add(dependencyProject(projects.junitPlatformConsole).configurations[" shadowedClasspath" ])
145
147
}
148
+ classpath.file.whenMerged {
149
+ this as Classpath
150
+ entries.filterIsInstance<SourceFolder >().forEach {
151
+ if (it.path == " src/test/resources" ) {
152
+ // Exclude Foo.java and FooBar.java in the modules-2500 folder.
153
+ it.excludes.add(" **/Foo*.java" )
154
+ }
155
+ }
156
+ }
146
157
}
147
158
148
159
idea {
You can’t perform that action at this time.
0 commit comments