Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit df2d2c4

Browse files
committed
added fatJar task
1 parent 06c2997 commit df2d2c4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ClassySharkWS/build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,17 @@ jar {
5252
)
5353
}
5454
}
55+
56+
//create a single Jar with all dependencies
57+
task fatJar(type: Jar) {
58+
manifest {
59+
attributes (
60+
'Main-Class': 'com.google.classyshark.Main',
61+
"Class-Path": configurations.compile.collect { "lib/$it.name" }.join(' ')
62+
)
63+
64+
}
65+
baseName = project.name + '-all'
66+
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
67+
with jar
68+
}

0 commit comments

Comments
 (0)