Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task testsJar(type: Jar) {
- from sourceSets.test.output
- }
- task fatJarWithTests(type: Jar) {
- manifest {
- attributes 'Main-Class' : 'com.example.Main'
- }
- baseName = project.name + '-all'
- from {
- configurations.compile
- .collect {
- it.isDirectory() ? it : zipTree(it)
- }
- }
- with jar, testsJar
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement