I am migrating an outdated application from Ant to Gradle. The requirement is to create a zip file with a specific folder structure that is used by the deployment team. I can create a zip file in the correct format, so good.
I can open the project in Eclipse, but I can not start it. In Eclipse (and IntelliJ) I need to add src/main/conf to the Eclipse class path, but it will not be included in the JAR (for example, if I had to run the gradle jar ).
This is how the project is structured:
src /main /java /com /example /App.java /resources /applicationConfiguration.xml /conf /dev.properties /staging.properties /prod.properties
How to add a conf folder to the path to Eclipse so that it is not included in the JAR that creates Gradle?
source share