CHAPTER 5

image

Projects and Plugins

Gradle provides a standardized project structure for domains such as Java, Scala, and Groovy. It takes a build-by-convention approach and provides recommendations on where different parts of the project should reside. For example, Gradle suggests that all of the Java source code should be placed in the src/main/java folder and all the test code should reside in the src/test/java folder. This standardization makes it easy for developers to jump from one project to another. This chapter covers Gradle’s build-by-convention features for Java projects.

Gradle follows a plugin-based architecture that makes it easy to ...

Get Introducing Gradle now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.