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

Applying the Java plugin

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

Start my 1-month free trial

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…

Contents