| | |
| | // Remove digital signature files to ensure an executable JAR file. |
| | - doFirst { |
| | + doFirst { |
| | from { |
| | - (configurations.runtime.resolve()).collect { |
| | - it.isDirectory() ? it : zipTree(it) |
| | - } |
| | - { |
| | - exclude 'META-INF/MANIFEST.MF' |
| | - exclude 'META-INF/*.SF' |
| | - exclude 'META-INF/*.DSA' |
| | - exclude 'META-INF/*.RSA' |
| | - } |
| | - } |
| | - } |
| | - |
| | - from { |
| | - (configurations.runtime).collect { |
| | - it.isDirectory() ? it : zipTree(it) |
| | + configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } |
| | } |
| | } |
| | - |
| | + |
| | + exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' |
| | + |
| | manifest { |
| | attributes 'Main-Class': mainClassName |