Skip to content

Commit

Permalink
Fix standalone jar
Browse files Browse the repository at this point in the history
  • Loading branch information
albinowax committed Jan 28, 2019
1 parent bc3c0d0 commit 4b6181c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ dependencies {
}

task fatJar(type: Jar) {
manifest {
attributes('Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'burp.Fast_httpKt'
)
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
Expand Down

1 comment on commit 4b6181c

@aalmiray
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could also use the Shadow plugin https://imperceptiblethoughts.com/shadow/introduction/ instead of writing a custom task

Please sign in to comment.