Multiple projects with separate Git repo dependent on each other: how to create local builds?
I have several projects (Commons, ProjectA, ProjectB) in IntelliJ that each reside in their own Git repo. ProjectA and ProjectB depend on project Commons. When I change code in Commons I have to build Commons in GitLab, load the new version through artifactory into Intellij. Otherwise ProjectA and ProjectB in IntelliJ won't see the changes made in Commons. Also, when being in ProjectA or ProjectB and jumping into code defined in Commons IntelliJ opens up the jar of Commons it retrieved from Artifactory and decompiles it on the fly.
Question: What do I need to do, that I can build changes in Commons locally so that they become visible for ProjectA and ProjectB? What do I need to do that I jump to the source code of Commons when jumping to code of Commons called in ProjectA or ProjectB?
I remember in eclipse you could define dependencies of procects within the same workspace that eclipse would consider whether maven or whatever is used or not.
Please sign in to leave a comment.
You can define dependencies between modules in IntelliJ IDEA: https://www.jetbrains.com/help/idea/creating-and-managing-modules.html#working-with-module-dependencies. Import them as modules and set up the dependencies within the same project.