title: Converting Maven project to Gradle
body: <p>I'm quite new to gradle and I can't really find a solution to my problem. I have searched across the web to see anyone has done something similar following best practices.</p>
  
  <p>I have several java projects being built with maven sharing a single project that contains all the environment profiles. So it looks like</p>
  
  <pre><code>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
  </code></pre>
  
  <p>and so on.</p>
  
  <p>Using profiles in maven I was able to build environment specific packages. At that time of doing the project structure I didn't really pay attention to see if this was best practice.</p>
  
  <p>Anyways, what I want to know is if there is a similar approach to gradle to generate environment specific packages whilst sharing the config across multiple projects.</p>