Advertisement
Guest User

Untitled

a guest
Dec 18th, 2020
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.32 KB | None | 0 0
  1. task testJar(type: Jar) {
  2.     manifest {
  3.         attributes('Main-Class': '<PACKAGE>.Tests')
  4.     }
  5.     archiveClassifier.set("tests")
  6.     from(sourceSets.test.output)
  7.     from {
  8.         configurations.testRuntimeClasspath.collect {
  9.             it.isDirectory() ? it : zipTree(it)
  10.         }
  11.     }
  12.     with jar
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement