-
Authoring Gradle PluginsCourse objectives
-
OverviewTour of sample pluginGradle plugin typesPlugin componentsCheck-in questions
-
Plugin Development - SetupInitial project setupCreate consumer test projectHands-on exercise - create plugin project
-
Plugin Development - ExtensionsDefining an extensionUnit testing of extensionCheck-in questionsHands-on exercise - add extension
-
Plugin Development - Custom TasksProperties and providersAdding a custom taskUnit testing of custom tasksInitializing prerequisite configurationUsing the Problems APIAdding functional testsCheck-in questionsHands-on exercise - add task
-
PublishingHow to publish your pluginMilestone
-
FeedbackSurvey
Do you need custom functionality available across your projects that's more complex than what standalone custom tasks can provide? Then this training is for you! You'll learn how to develop a Gradle project plugin that can be published and applied to your projects.
What You'll Learn:
The three main components to authoring a Gradle plugin:
Extensions: Allowing users to configure the plugin behavior
Tasks: Providing custom functionality
Plugin class: Configuring prerequisite tasks and tying everything together
Testing your plugin:
Unit tests: For basic configuration of the plugin components
Functional tests: A powerful tool that enables testing with real-world scenarios
Consumer project: How to manually test the behavior as an end-user would as you develop
Prerequisites:
Experience with software development
Gradle Build Tool experience, including knowledge of core concepts and authoring build files (Kotlin DSL experience a plus)
By the end of this course, you'll be able to:
Create a Gradle plugin that can be applied by projects
Enroll today and enhance your Gradle Build Tool skills to gain deeper insights into your builds and improve your development workflow!