Step by step guide to create a Custom Gradle Plugin in Java and sample project for usagae
##Structure
This project has three sections
- gradle-java-plugin : Simple gradle java plugin projcet
- plugin-sample : Simple usage of the above plugin
- repo : Maven local repository
- Create a new gradle project
- Apply 'java-gradle-plugin'
- Apply 'maven' plugin to distribute the libs
- Create CustomGradleJavaPlugin, CustonGradleJavaPluginExtension and CustomGradleJavaPluginTask classes in %PROJECT%/src/main/java
- Create META-INF/gradle-plugins folder at %PROJECT_FOLDER%/src/main/resources folder
- Create a properties file, the name should represent the name of the plugin, which will be represented in other projects
- Execute ./gradle clean build uploadArchives command
- local maven repo folder created, which in this case is used in plugin-sample
- Create a sample gradle project
- Apply the buildScript plugin, which resolves the plugin dependencies(refer the build.gradle)
- Apply the custom plugin, the name refers to the point mentioned in the point 5 of gradle-java-pluin
- Provide the custom plugin extension properties
- Execute ./gradlew build customGradleJavaPluginTask
- Verify the output intended
