Hello, everyone!

GUHADA tech update at this time is about “Gradle Multi-Project”.

Most of the developers are familiar with Gradle and is used for the multi-project.

As you can see on the left, it shows a set with API that connects Database and Web, which is close to the User Model. So, you have to think about how to process the “Model” that is used by both Web and API at the same time.

Accordingly, we labeled the model as “User” which has to be utilized frequently.

So, there are various ways that the “Model” can be used frequently.

The easiest way is using “copy & paste” after creating the model. In this situation, it is difficult to manage the organization because of the model object has to be managed from two locations. So, as the number of projects increases each time, the same object as to be created over and over, so if a section is changed each object corresponding to the change has to be changed as well. In such situations, there could be some mistakes, so it may not be a good method.

However, if the preconditions shown below are met, it can be considered an applicable method.