Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'groovy'
- apply plugin: 'application'
- version = '1.0'
- mainClassName='MyClass'
- repositories {
- mavenCentral()
- }
- dependencies {
- compile 'org.codehaus.groovy:groovy-all:2.0.0'
- compile fileTree(dir: '/home/rb/.groovy/lib', include: '*.jar');
- runtime fileTree(dir: '/home/rb/.groovy/lib', include: '*.jar');
- }
- task uberjar(type: Jar,dependsOn:[':compileJava',':compileGroovy']) {
- from files(sourceSets.main.output.classesDir)
- from configurations.runtime.asFileTree.files.collect { zipTree(it) }
- manifest {
- attributes 'Main-Class': mainClassName
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement