Update build.gradle to build JAR with dependencies
This commit is contained in:
parent
bf023781d2
commit
125fc238b3
|
@ -28,6 +28,17 @@ java {
|
|||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes(
|
||||
'Main-Class': 'Main'
|
||||
)
|
||||
}
|
||||
from {
|
||||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
}
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = 'Main'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user