kotlin-dsl-samples
kotlin-dsl-samples copied to clipboard
sample project that demonstrates how you can test your custom build with a JUnit5 test
trafficstars
Context
While learning how to use the Kotlin DSL for Gradle I found the samples to be immensely helpful. However I missed a sample that demonstrated how to unit-test your custom logic in buildSrc with. I think other users also could benefit from some this sample.
#1087
Note: this is a continuation of https://github.com/gradle/kotlin-dsl/pull/1302
Contributor Checklist
- [x ] Base the PR against the
developbranch - [x ] Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
- [ ] Provide integration tests to verify changes from a user perspective
- [x] Provide unit tests to verify logic
- [ ] Ensure that tests pass locally:
./gradlew check --parallel
The example is great! My only question is: why should I google is out as a PR instead of one of official Kotlin DSL samples?