Skip to content

Commit

Permalink
Gradle target "jar" builds a fat jar
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaak committed Dec 11, 2020
1 parent 3ab0984 commit 0d4dfe9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ dependencies {

def main_class = 'jettyplay.MainFrame'
mainClassName = main_class
jar { manifest { attributes 'Main-Class': main_class } }

jar {
manifest { attributes 'Main-Class': main_class }
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
}

0 comments on commit 0d4dfe9

Please sign in to comment.