IntelliJ with Multiple Gradle + Multiple Repository Project

已回答

Hello,

I am wondering about best practices for a multi-repo, multi-gradle project setup in IDEA 2023.3.2. There are several posts on SO about this topic, but most are years/versions old.

I currently use several different artifacts across our company: common, web, security, etc. When developing, I need to jump into a project, update my code, build/deploy, and then update the version in the dependent modules. wait for gradle to update, etc. It's quite cumbersome.

I would love to have the ability to have all the modules in a single project, with the build/deploy happening in my local maven repo, then deploying to dev/prod using our CI/CD on a per-module basis. This would be like the old days of the big monolithic code bases. Currently, deployment is based on Github actions, so that would be ideal.

How do people set this up with modern versions of IntelliJ?

Thank you,

E

0

One option to consider is to link all of your Gradle Projects using the “+” button in the Gradle Tool Window: you can deploy them to the Maven Local using Gradle's PublishToMavenLocal, while deploying to CI/CD with GitHub Actions.

 

0

请先登录再写评论。