Skip to content

Commit a8ca57a

Browse files
committed
Add fatJar rule to build.gradle.
1 parent 64cbc46 commit a8ca57a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,12 @@ dependencies {
3737
// Use JUnit test framework
3838
testImplementation 'junit:junit:4.12'
3939
}
40+
41+
task fatJar(type: Jar) {
42+
from {
43+
configurations.runtimeClasspath.collect {
44+
it.isDirectory() ? it : zipTree(it)
45+
}
46+
}
47+
with jar
48+
}

0 commit comments

Comments
 (0)