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.
Applying the Java plugin
From the course: Gradle for Java-Based Applications and Libraries
Applying the Java plugin
- [Instructor] Java plugin is a core Gradle plugin bundled with the Gradle distribution. It helps projects with compiling, testing and bundling Java source code without having to write a custom build logic. The plugin introduces conventions and sensible defaults that should work for most projects. For example, the directory to look for source code or the output directory for artifacts. The plugin can be configured to change the defaults if your organization does not or cannot stick to the conventions due to a legacy project structure. For a detailed description of the functionality, have a look at the Gradle user guide. I want to point out some important aspects though. This overview shows the expected directory structure of a Java-based project built by the plugin. The directory src/main/Java contains the production source code. src/main/resources contains resource files you may need at runtime. You have an equivalent set…
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)
-
-
-