Skip to content

Commit b152de4

Browse files
committed
Modify jar task from java plugin in order to produce fat-jar
1 parent 3f8fb8d commit b152de4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

gradle/gradle-fat-jar/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ repositories {
44
mavenCentral()
55
}
66

7+
jar {
8+
manifest {
9+
attributes "Main-Class": "com.baeldung.fatjar.Application"
10+
}
11+
12+
from {
13+
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
14+
}
15+
}
16+
717
dependencies{
818
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
919
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'

0 commit comments

Comments
 (0)