Gradle issue w/ multi module projects - Needing help.
Hey,
I currently have a multi-module gradle project that I develop with in IntelliJ, and I'm having some downright confusing issues with unresolved classes from other modules.
For example -> Depending on my "common" module in my paper module and any classes cannot be resolved.
If you have the chance, please clone the
refactor
refactor
branch of https://github.com/TerraByteDev/SkyFactionsReborn/tree/refactor, and open it up in IntelliJ (this has happened on both Ultimate and Community). Wait for Gradle to sync and then head to anywhere in the paper module e.g. the main SkyFactionsReborn javaplugin class, and confirm whether you have the same issue.
If you do, please figure out what the fuck I'm doing wrong. I've looked at ALL of my gradle files and nothing is wrong afaik.
The only temporary fix I know of is to run
./gradlew idea
./gradlew idea
, then delete the .idea folder and reopen the project. You have to skip gradle sync. It is only a temporary fix and breaks hotswap.