Skip to content

Commit 587ba54

Browse files
add gradle task jarWithDependencies
1 parent a6e5ec3 commit 587ba54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ jar {
3636
from sourceSets.main.allSource
3737
}
3838

39+
task jarWithDependencies(type: Jar) {
40+
baseName = project.name + '-WithDependencies'
41+
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
42+
with jar
43+
}
44+
3945
test {
4046
testLogging {
4147
events "passed", "skipped" , "failed"

0 commit comments

Comments
 (0)