Advertisement
Guest User

Untitled

a guest
Mar 8th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. apply plugin: 'groovy'
  2. apply plugin: 'application'
  3. version = '1.0'
  4. mainClassName='MyClass'
  5.  
  6. repositories {
  7. mavenCentral()
  8. }
  9.  
  10. dependencies {
  11. compile 'org.codehaus.groovy:groovy-all:2.0.0'
  12. compile fileTree(dir: '/home/rb/.groovy/lib', include: '*.jar');
  13. runtime fileTree(dir: '/home/rb/.groovy/lib', include: '*.jar');
  14. }
  15.  
  16. task uberjar(type: Jar,dependsOn:[':compileJava',':compileGroovy']) {
  17. from files(sourceSets.main.output.classesDir)
  18. from configurations.runtime.asFileTree.files.collect { zipTree(it) }
  19.  
  20. manifest {
  21. attributes 'Main-Class': mainClassName
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement