Copying Additional Files With Gradle Application Plugin

When building application distributions for Java apps you often need to bundle default configuration files, other resource, etc. into your application distribution. If you are using Gradle with Gradle Application Plugin for creating the application distribution for your project, you can use following code fragment in your Gradle project to copy addition files.

applicationDistribution.from("src/main/resources/conf") {
    into "conf"
}

Above code fragment copies content of conf directory into application distributions conf directory located in the root directory of your distribution.

 
66
Kudos
 
66
Kudos

Now read this

Interesting Resources on Writing

Starting to participate in #The100DayProject by writing every day for 100 days got me into research more about writing. Writing is major part of the life as grad student. But I was far behind my writing and I wanted to improve by writing... Continue →