Demonstrates a Gradle plugin implemented in Groovy while still exposing a Kotlin DSL friendly API.
Check out the consuming build script to see the friendly API in action.
Check out the Groovy plugin source code for tips on how to achieve the same effect.
This sample contains two projects:
- plugin - a Gradle plugin implemented in Groovy,
- consumer - a build that uses the Gradle plugin above.
Run with:
./gradlew consumer
This will build and publish the Gradle plugin
locally then run the books
task contributed by the plugin in the consumer
project.