I work on and support a lot of Gradle builds. When working on these builds I prefer to use IDEA and I will just open the folder containing the settings.gradle file and generally things work well.
However, I’ve noticed about 50% of the time I can cross-probe/Strl+Click on Gradle DSL and it will decompile and take me to the Gradle source. In fact, if I change the wrapper to define that it uses the -all version of the wrapper then it will be proper source.
Unfortunately, the other 50% of the time all of the Gradle DSL is grayed out and cross-probe doesn’t work at all. In these failure cases when I inspect the IDEA Project Structure (Strl+Shift+Alt+S) the Gradle modules are completely missing. Even if I go and manually add the Gradle module from the cache folder it still doesn’t work correctly.
What is the best/easiest way to fix these cases or what needs to be changed in these projects to enable the cross-probe into Gradle source from build.gradle DSL?
See also: https://discuss.gradle.org/t/cross-probe-ctrl-click-from-build-gradle-into-gradle-source/39989