version '1.0-SNAPSHOT' apply plugin: 'java' sourceCompatibility = 1.8 task run(type:JavaExec) { classpath = sourceSets.main.runtimeClasspath main = 'Main' }