Skip to content

Commit

Permalink
Build now creates a standalone .jar file
Browse files Browse the repository at this point in the history
  • Loading branch information
emlautarom1 committed Jun 16, 2019
1 parent 853388f commit bf4eed0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ dependencies {

jar {
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'app.Main'
)
attributes "Main-Class": "app.Main"
}

from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}

Expand Down

0 comments on commit bf4eed0

Please sign in to comment.