1jar {
2    // Copy from compileClasspath
3    from {
4        // handling duplicate file strategy
5        duplicatesStrategy = DuplicatesStrategy.WARN
6        
7        // copy all files from compileClasspath
8        configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
9    }
10}