Skip to content

Commit

Permalink
Gradle should also build fat jars with entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
philip1337 committed Aug 12, 2018
1 parent 11fd843 commit d663382
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'distribution'



configurations {
provided
}
Expand All @@ -27,7 +29,10 @@ version = '0.0.1'

jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version)
attributes 'Main-Class': 'com.philip1337.veloxio.archiver.Main'
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}

0 comments on commit d663382

Please sign in to comment.