Q: has anyone had good success with InteliJ (ultimate, ea distro) using gradle composite builds ?
It used to work OK -- not great but OK -- until about 2 months ago then for me
It consistantly fails to resolve core dependencies from the included builds -- even dependancies which are replicated in the master build --
This renders the IDE nearly useless
Timing wise the seems coorelated to gradle 5+ change to standard configuration names
m
Mike
02/08/2019, 9:06 PM
Still mostly on gradle 4 but just starting to upgrade. I'll have to try it to see if my experience is similar. What version of IJ are you using? I tend to run latest EAP.
m
Marc Knaup
02/09/2019, 2:04 AM
There is one bug where IDEA doesn't pick up transitive dependencies in composite builds.
In such cases disabling the setting Build. Execution, Deployment > Building Tools > Gradle > Create separate module per source set helped me as a workaround.
d
DALDEI
02/11/2019, 3:38 PM
using IJ 2019.1 EAP. re: build setting, will try. Since my first exposure to inteliJ was after converting to gradle, I never understood the meaning of that checkbox or what dragons lie below if I were to deviate from the recommended. Now with the skill level atleast novice I will be brave and try that.
What could possibly go wrong ??:)
m
Marc Knaup
02/11/2019, 3:43 PM
I'm also not sure what the difference is apart from what is written there 😅
d
DALDEI
02/11/2019, 4:33 PM
That sure does something. (disable create seperate module per source set). I no longer see the xxx-test and xxx-main modules. I do see duplicate or triplicately named modules. Still build errors but they go away after doing mutilple rebuilds -- looks like dependant moduiles are not being considered as sometihng to wait for.
DALDEI
02/12/2019, 1:21 PM
Ths trick didnt end up solving all the cases -- in fact some cases that it fixed upfront started to break later