1

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?

1 Answer 1

1

The Gradle application plugin can be used specifically for this.

apply plugin: 'application'

mainClassName = 'foo.org.Main'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.