On 03/05/2011, at 6:27 AM, Russ Rollins wrote: > I've been thinking about several Gradle projects that I have on the horizon > and wondering about creating a task/plugin common to the projects that would: > 1. define a specific set of compile and runtime dependencies > 2. compile the code (groovy, scala, java) > 3. execute a main() on one of the compiled classes with the appropriate > classpath as defined in step #1
You might look at the application plugin for this: http://gradle.org/current/docs/userguide/application_plugin.html Alternatively, you could use the JavaExec task in your plugin: http://gradle.org/current/docs/dsl/org.gradle.api.tasks.JavaExec.html -- Adam Murdoch Gradle Co-founder http://www.gradle.org VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting http://www.gradleware.com
