Skip to content

Commit

Permalink
Add fatjar task
Browse files Browse the repository at this point in the history
  • Loading branch information
rsxrwscjpzdzwpxaujrr committed Jan 22, 2022
1 parent 173fa44 commit 0546c29
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ dependencies {
compile group: 'org.lwjgl', name: 'lwjgl-glfw' , version:'3.3.0', classifier:'natives-macos'
}

task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'Game'
}

classifier = 'all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}

sourceSets {
main {
java {
Expand Down

0 comments on commit 0546c29

Please sign in to comment.