Groovy Fundamentals

build.gradle

task groovy << {}
[vagrant@localhost ud867]$ gradle groovy
:groovy

BUILD SUCCESSFUL

Total time: 9.107 secs

task groovy << {}

println "Hello Groovy!"
task groovy << {}

class JavaGreeter {
	public static void sayHello(){
		System.out.println("Hello Java!");
	}
}

JavaGreeter greeter = new JavaGreeter()
greeter.sayHello()