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.
This commit is contained in:
parent
76b2d13b2c
commit
5e4e530c59
|
@ -69,6 +69,13 @@ eclipse.classpath.file.whenMerged {
|
|||
}
|
||||
}
|
||||
|
||||
// Remove Java 21 classpath entries, since we currently use Java 17
|
||||
// within Eclipse. Consequently, Java 21 features managed via the
|
||||
// me.champeau.mrjar plugin cannot be built or tested within Eclipse.
|
||||
eclipse.classpath.file.whenMerged { classpath ->
|
||||
classpath.entries.removeAll { it.path =~ /src\/(main|test)\/java21/ }
|
||||
}
|
||||
|
||||
// Remove classpath entries for non-existent libraries added by the me.champeau.mrjar
|
||||
// plugin, such as "spring-core/build/classes/kotlin/java21".
|
||||
eclipse.classpath.file.whenMerged {
|
||||
|
|
Loading…
Reference in New Issue