Skip to content

Commit

Permalink
Add task to create fat jar ot put it into the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Turov committed Apr 23, 2021
1 parent b4af5f4 commit 67985c8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,14 @@ task resolveDependencies {
}
}
}

task createFatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'org.hyperskill.hstest.stage.StageTest'
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}

0 comments on commit 67985c8

Please sign in to comment.