--add-exports don't work in Eclipse

I want to migrate our projects from Java 8 to Java 11/17.

I’ve defined some --add-exports in my compile.gradle file. On the comand line all works fine an I can build it without errors. In Eclipse the exported modules are not visible and so I have a lot of errors.

Here the start of my compile.gradle file:
subprojects { project →
project.pluginManager.withPlugin(‘java-library’) {
compileJava {
options.incremental = true
options.compilerArgs.addAll([
“–add-exports”,
“java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED”
])
options.compilerArgs.addAll([
“–add-exports”,
“java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED”
])

Here my env:

Gradle 6.8.3

Build time: 2021-02-22 16:13:28 UTC
Revision: 9e26b4a9ebb910eaa1b8da8ff8575e514bc61c78

Kotlin: 1.4.20
Groovy: 2.5.12
Ant: Apache Ant™ version 1.10.9 compiled on September 27 2020
JVM: 11.0.12 (Amazon.com Inc. 11.0.12+7-LTS)
OS: Windows 10 10.0 amd64

My Eclipse version is 2021-06 (4.20.0), Build id: 20210612-2011

Any ideas how I can solve this problem?