Convert Maven Project to Gradle

I am new to gradle and I cannot find a solution to my problem. I searched the Internet to see that someone had done something similar, following best practices.

I have several java projects that are built using maven, sharing a single project that contains all the environment profiles. So it looks like

Environment Project
---- pom.xml
---- config
-------- dev.properties
-------- stage.properties
-------- prod.properties
Project A
---- pom.xml
---- src
-------- main
------------ java
------------ resources
-------- test
------------ java
------------ resources
Project B
---- pom.xml
---- src
-------- main
------------ java
------------ resources
-------- test
------------ java
------------ resources
Project C
---- pom.xml
---- src
-------- main
------------ java
------------ resources
-------- test
------------ java
------------ resources

etc.

Using profiles in maven, I was able to create environment-specific packages. When I was involved in the design structure, I really did not pay attention to make sure that this is the best practice.

In any case, I want to know if there is a similar approach to gradle for creating environment-specific packages when sharing configuration for multiple projects.

+4
1
0

Source: https://habr.com/ru/post/1607766/


All Articles