From the course: Gradle for Java-Based Applications and Libraries
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Exploring the Java Application plugin
From the course: Gradle for Java-Based Applications and Libraries
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Anatomy of a simple Java project2m 34s
-
(Locked)
Applying the Java plugin2m 37s
-
(Locked)
Compiling Java source code2m 49s
-
(Locked)
Packaging a JAR file2m 51s
-
(Locked)
Exploring the Java Application plugin3m 10s
-
(Locked)
Challenge: Generating Javadocs for a Java project1m 42s
-
(Locked)
Solution: Generating Javadocs for a Java project5m 25s
-
(Locked)
-
-
-