Skip to content

Commit

Permalink
Add gradle config for creating jar
Browse files Browse the repository at this point in the history
  • Loading branch information
zbz-lvlv committed Aug 21, 2022
1 parent 57e55db commit fb8c46d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,25 @@ shadowJar {
run{
standardInput = System.in
}

jar {

archiveName = "maria.jar"

from {

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

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

manifest {
attributes 'Main-Class': 'maria.Maria'
}

exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
}

0 comments on commit fb8c46d

Please sign in to comment.