plugin

An add-on that extends a tool with extra features, such as the Maven and Gradle plugins that compile, test and package Java code.

In more detail

In Maven, each plugin binds goals to lifecycle phases; for example the Surefire plugin runs tests in the test phase. In Gradle, applying a plugin such as java-library adds tasks for compiling, testing and packaging. When a build fails, look for which plugin or task failed.

Example

plugins { `java-library` }

Related terms

Taught in

References