Skip to content

Instantly share code, notes, and snippets.

@xconnecting
Created February 8, 2013 06:56
Show Gist options
  • Save xconnecting/4737174 to your computer and use it in GitHub Desktop.
Save xconnecting/4737174 to your computer and use it in GitHub Desktop.
[Gradle] Execute Java Application
apply plugin: 'java'
apply plugin: 'eclipse'
task execJava (type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = "example.Main"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment