Skip to content

Instantly share code, notes, and snippets.

@lifuzu
Created December 15, 2013 04:51
Show Gist options
  • Save lifuzu/7969039 to your computer and use it in GitHub Desktop.
Save lifuzu/7969039 to your computer and use it in GitHub Desktop.
Using FileCollection addition to create a runtime classpath
//Using FileCollection addition to create a runtime classpath
task run(type: JavaExec) {
main = 'org.gradle.example.PoetryEmitter'
classpath = configurations.compile + sourceSets.main.output
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment