1.7 KiB
1.7 KiB
The following has been tested against STS 4.0.0.M11, which ships with Buildship (the Gradle tooling from Gradleware). It should work with the latest Eclipse distro as long as you install Buildship.
Steps
Within your locally cloned spring-framework working directory:
- Precompile
spring-oxmwith./gradlew :spring-oxm:compileTestJava - Import into Eclipse (File -> Import -> Gradle -> Existing Gradle Project -> Navigate to directory -> Select Finish)
- If prompted, exclude the
spring-aspectsmodule (or after the import by deleting the project) - In the
spring-oxmproject, add the two folders (castorandjaxb) inbuild/generated-sourcesto the build path (right click on them and selectBuild Path -> Use as Source Folder) - If your workspace default JDK is Java 8, add a Java 9 (or 10) JDK, and update the build path in
spring-beansandspring-coreto use it instead of the default - Code away
Known issues
spring-coreandspring-oxmshould be pre-compiled due to repackaged dependencies. See*RepackJartasks in the build).spring-aspectsdoes not compile due to references to aspect types unknown to Eclipse. If you install AJDT into Eclipse it should work.- While JUnit tests pass from the command line with Gradle, some may fail when run from the IDE. Resolving this is a work in progress. If attempting to run all JUnit tests from within the IDE, you will likely need to set the following VM options to avoid out of memory errors: -XX:MaxPermSize=2048m -Xmx2048m -XX:MaxHeapSize=2048m
Tips
In any case, please do not check in your own generated .classpath, .project or .settings. You'll notice these files are already intentionally in .gitignore. The same policy goes for IDEA metadata.