Does anybody know if Intellij IDEA supports depend...
# intellij
a
Does anybody know if Intellij IDEA supports dependency version update hints for gradle? I can see vulnerability fix suggestions, but not version updates.
j
Yeah, it supports them and recently I have seen them on version catalogs but I think it was on Android Studio and not yet on IDEA.
a
I think it works for Android, but I would love to see that for Spring Boot too. We are not yet on toml version catalogs, but plan to migrate our backend to it too
j
Not related to IntelliJ but I highly recommend renovate to upgrade dependencies
a
Yes, that’s the plan. • update dependencies manually in the controlled manner with testing • integrate version catalogs • integrate renovate
👍 1
I am now on the first step and was hoping to avoid the task of manually checking every dependency we have 😃
s
Code -> Analyze Code -> Run inspection by name -> Check for new dependency versions 👌
a
nice idea, but didn’t give me any results somehow. like its nothing to update, while I am pretty sure that I have some dependencies that are at least a few months behind
s
Huh, that’s strange. It works great for me. Perhaps there’s something it doesn’t like about the way you are specifying your dependencies or repositories 🤔
a
we are not using dependency management from spring boot, but doesn’t seem to be the cause of it
I went into Dependencies tab and ran analysis again. Many packages give me this:
image.png
While there are plenty of new version in Maven
Ok, I see why: https://www.jetbrains.com/help/idea/package-search-build-system-support-limitations.html
Copy code
For Gradle only a top level dependencies { } block is supported in the build script. Dependencies set from other places (such as a subprojects block in the root build script) are not supported.
So Package Search is basically useless if you have submodules in the project (and who doesn’t?)
j
subprojects block is not recommended
a
I don’t have subprojects block, but I do have other modules in the project and Package Search doesn’t work there too
only works on my root gradle file