The following has been tested against IntelliJ IDEA 2016.2.2
Within your locally cloned spring-framework working directory:
spring-oxm
with ./gradlew :spring-oxm:compileTestJava
spring-aspects
module (or after the import via File-> Project Structure -> Modules)spring-core
and spring-oxm
should be pre-compiled due to repackaged dependencies.
See *RepackJar
tasks in the build and https://youtrack.jetbrains.com/issue/IDEA-160605).spring-aspects
does not compile due to references to aspect types unknown to
IntelliJ IDEA. See https://youtrack.jetbrains.com/issue/IDEA-64446 for details. In the meantime, the
'spring-aspects' can be excluded from the project to avoid compilation errors.spring-oxm
module again (./gradlew :spring-oxm:compileTestJava
)In any case, please do not check in your own generated .iml, .ipr, or .iws files. You'll notice these files are already intentionally in .gitignore. The same policy goes for eclipse metadata.
Q. What about IntelliJ IDEA's own Gradle support?
A. Keep an eye on https://youtrack.jetbrains.com/issue/IDEA-53476