I tried to add support for Reporting in my plugin, but I’ve got:
PitestReportsContainerImpl.groovy: -1: The return type of org.gradle.api.NamedDomainObjectSet matching(org.gradle.api.specs.Spec) in org.gradle.api.internal.DefaultNamedDomainObjectSet is incompatible with org.gradle.api.DomainObjectCollection matching(org.gradle.api.specs.Spec) in org.gradle.api.DomainObjectCollection
. At [-1:-1]
@ line -1, column -1.
1 error
I use in my PitestReportsContainer and PitestReportsContainerImpl the same convention as JacocoPlugin (from Gradle 1.10).
The error can be reproduced with:
git clone https://github.com/szpak/gradle-pitest-plugin.git -b reporting-error
cd gradle-pitest-plugin
./gradlew build