I am writing a Gradle plugin and learning Gradle reading the user manual and source code of the plugins inside the Gradle project.
In the source code, I found two ways to add properties to the project:
- Convention (installed by JavaBasePlugin and used by JavaPlugin)
- Extension (installed by AnnoncePlugin and used by BuildAnnouncementsPlugin).
I do not understand the difference between them and which one to use for which situation. Can someone explain?
PS: Can someone add the "gradle-plugin" tag to SO, please?
plugins gradle
Vincent
source share