Modify jar task from java plugin in order to produce fat-jar
This commit is contained in:
parent
3f8fb8dd78
commit
b152de4851
|
@ -4,6 +4,16 @@ repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jar {
|
||||||
|
manifest {
|
||||||
|
attributes "Main-Class": "com.baeldung.fatjar.Application"
|
||||||
|
}
|
||||||
|
|
||||||
|
from {
|
||||||
|
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies{
|
dependencies{
|
||||||
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
|
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
|
||||||
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
|
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
|
||||||
|
|
Loading…
Reference in New Issue