Hi Jonathas,
I finally managed to get Android SDK (14GB in default configuration -
nice!) and I was able to reproduce the problem. The key is the line just
before the error you pasted:
> * What went wrong:
> A problem occurred evaluating project ':app'.
>> Failed to apply plugin [id 'info.solidsoft.pitest']
> > Failed to apply plugin [id 'java']
> > Cannot add task ':app:test' as a task with that name already exists.
Looking at the robolectric-gradle-plugin source code I see that it uses
JavaBasePlugin while gradle-pitest-plugin uses JavaPlugin. They are not
compatible (cannot be used together) and for gradle-pitest-plugin
JavaBasePlugin is not enough.
I have no clear idea how to solve it. Maybe some conditional logic to
work in a mode where sourcesets are created in non standard way.
Please subscribe to
https://github.com/szpak/gradle-pitest-plugin/issues/24 to get info
about possible progress.
Marcin