Skip to content

Commit 5e4e530

Browse files
committed
Remove Java 21 classpath entries in Eclipse projects
Since the me.champeau.mrjar stores Java 21 main and test sources in non-standard locations, and since we can only use a single JDK within Eclipse, this commit updates `ide.gradle` to remove `java21` classpath entries in Eclipse projects.
1 parent 76b2d13 commit 5e4e530

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gradle/ide.gradle

+7
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ eclipse.classpath.file.whenMerged {
6969
}
7070
}
7171

72+
// Remove Java 21 classpath entries, since we currently use Java 17
73+
// within Eclipse. Consequently, Java 21 features managed via the
74+
// me.champeau.mrjar plugin cannot be built or tested within Eclipse.
75+
eclipse.classpath.file.whenMerged { classpath ->
76+
classpath.entries.removeAll { it.path =~ /src\/(main|test)\/java21/ }
77+
}
78+
7279
// Remove classpath entries for non-existent libraries added by the me.champeau.mrjar
7380
// plugin, such as "spring-core/build/classes/kotlin/java21".
7481
eclipse.classpath.file.whenMerged {

0 commit comments

Comments
 (0)