From the course: Gradle for Java-Based Applications and Libraries

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Exploring the Java Application plugin

Exploring the Java Application plugin

From the course: Gradle for Java-Based Applications and Libraries

Start my 1-month free trial

Exploring the Java Application plugin

- [Narrator] In Java, you can create applications or libraries from source code. Applications are executable programs that end users interact with. Libraries are reusable functionality that can be consumed by other JVM programs. In this video, we'll want to have a look at the support Gradle offers for creating executable programs. The application plugin helps with creating executable JVM applications. It serves two different use cases. You can run it for local development by executing the run task that runs your program without having to build a distribution or you can execute the installDist task that generates operating system specific scripts suitable for starting the program. Finally, you can bundle the generated application files into an archive using the tasks distZip or disTar. Let's see the functionality of the plugin in action. We'll start by applying the plugin with the ID application. There's one mandatory…

Contents