the .groovy files have also dependencies.
- make a jar file with all dependencies Test.jar
- run it using gradle junit task, or groovy task
now the groovy files do not have a main() which does not make it a candidate for application plugin
the .groovy files have also dependencies.
now the groovy files do not have a main() which does not make it a candidate for application plugin
i got this one figured out.
apply plugin: 'groovy'
task uberJar(type: Jar,dependsOn:[':compileGroovy']) {
zip64 true
from files(sourceSets.main.output.classesDir)
from configurations.runtime.asFileTree.files.collect {zipTree(it) }
with jar
}
i have the jar file in …/build/lib but now how do i run this jar file with gradle ?