All your projects have a dependency on com.badlogicgames.gdx:gdx
. You also have mavenCentral()
defined as a repository, so all libGDX dependencies will be pulled from there. That works as intended.
The problem you actually have is that you have the libGDX source and the spine-libgdx Runtimes source and want them to use each other in IntelliJ IDEA. The libGDX respository has pom.xml files for every project. You should be able to load them as modules in IDEA. You can then load the spine-libgdx Runtime the same way. IDEA should resolve the dependencies in your project to those modules instead of fetching them from Maven Central. I haven't tried this in years, IIRC, it didn't work back then (which is why I use Eclipse, where this works just fine).
It seems this still hasn't been fixed in IDEA? Here's a starting point to search for a solution. https://intellij-support.jetbrains.com/hc/en-us/community/posts/206836605-Always-prefer-local-module-source-over-Maven-dependencies
I'm afraid I'm not an IntelliJ IDEA expert enough to help with this problem. You could maybe ask on the libGDX IRC or forums, they should know how to get this "from source" setup working there.