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.

 
72
Kudos
 
72
Kudos

Now read this

Clojure Magic: proxy and proxy-super

Clojure is fun and Clojure macros are even more fun to use and really useful for developing domain specific languages. You can do amazing things using macros once you get used to them. This post describes how we can use Clojure proxy and... Continue →