With Gradle 4.8, IntelliJ doesn't properly resolve dependencies for a module that relies on this plugin (namely io.spring.convention.spring-test) and declares only testCompile dependencies. The net result of this is that the project can't be compiled in IDE.
This behavior can be reproduced using Spring Session, where docs module declares the following dependencies:
With Gradle 4.7 (project at commit spring-projects/spring-session@63f1050) this is resolved as expected:
However with Gradle 4.8 (project at commit spring-projects/spring-session@4a52de0) this is resolved as:
Which results in compilation errors. If however a single dependency is declared as compile dependency, then things do work with 4.8:
I've tracked the root cause to use of propdeps-idea - with that plugin out of the picture, the dependencies are resolved as expected. Perhaps we could consider replacing the propdeps-plugin with gradle-extra-configurations-plugin?
With Gradle 4.8, IntelliJ doesn't properly resolve dependencies for a module that relies on this plugin (namely
io.spring.convention.spring-test
) and declares onlytestCompile
dependencies. The net result of this is that the project can't be compiled in IDE.This behavior can be reproduced using Spring Session, where
docs
module declares the following dependencies:With Gradle 4.7 (project at commit spring-projects/spring-session@63f1050) this is resolved as expected:
However with Gradle 4.8 (project at commit spring-projects/spring-session@4a52de0) this is resolved as:
Which results in compilation errors. If however a single dependency is declared as
compile
dependency, then things do work with 4.8:I've tracked the root cause to use of
propdeps-idea
- with that plugin out of the picture, the dependencies are resolved as expected. Perhaps we could consider replacing thepropdeps-plugin
withgradle-extra-configurations-plugin
?