spring-framework/gradle
Sam Brannen a247b83cd9 Ensure projects can be imported into Eclipse IDE with JDK 17
Prior to this commit, the Spring Framework projects could not be
imported into Eclipse IDE when using JDK 17 to build the projects.

The primary obstacle is the fact that Eclipse enforces a strict
"no split packages between the unnamed module and a system module" rule
when building with a "modular JDK" (such as JDK 17).

Resources:

- https://bugs.eclipse.org/bugs/show_bug.cgi?id=536928
- https://bugs.openjdk.java.net/browse/JDK-8215739
- http://mail.openjdk.java.net/pipermail/jigsaw-dev/2018-December/014077.html
- https://stackoverflow.com/questions/51094274/eclipse-cant-find-xml-related-classes-after-switching-build-path-to-jdk-10/53824670#53824670

Since the bug (JDK-8215739) has not been fixed in OpenJDK, the strict
"no split packages" rule does not apply to the Java compiler used in
Spring Framework's Gradle build or the compiler in IntelliJ IDEA. Hence,
this issue only arrises when building the framework in Eclipse IDE.

This commit addresses this issue in the following affected projects.

- spring-oxm: removal of the dependency on XPP3 which publishes
    javax.xml.namespace.QName as part of the JAR. The QName type is
    also published by the java.xml JDK 17 system module. To make the
    tests pass, we have switched to using the DomDriver instead of the
    XppDriver in our XStream tests.

- spring-test: HtmlUnit has a transitive dependency on xml-apis which
    publishes several packages also published by java.xml JDK 17 system
    module. Thus, we have explicitly excluded the transitive dependency
    on xml-apis for our `optional` configuration.

See gh-27407
2021-09-22 16:22:27 +02:00
..
wrapper Upgrade to Gradle 7.2 2021-09-13 09:37:35 +02:00
docs-dokka.gradle Fix noHttp failure 2021-09-13 10:14:58 +02:00
docs.gradle Polish Gradle upgrade 2021-09-13 10:06:27 +02:00
ide.gradle Ensure projects can be imported into Eclipse IDE with JDK 17 2021-09-22 16:22:27 +02:00
publications.gradle Remove artifactory plugin from build 2020-04-28 14:34:40 +02:00
spring-module.gradle Upgrade to Gradle 7.2 2021-09-13 09:37:35 +02:00
toolchains.gradle Upgrade to Checkstyle 9.0, Groovy 3.0.9, Hibernate ORM 5.5.7 2021-09-15 15:26:13 +02:00