Reputation: 507
Say I have a java program HelloWord.java and it has no dependencies, just a simple program, how do I include a command line Gradle build script so someone can run the project?
Upvotes: 1
Views: 195
Reputation: 13466
The Gradle application plugin can be used specifically for this.
apply plugin: 'application'
mainClassName = 'foo.org.Main'
Upvotes: 1