More than one file was found with OS independent path 'mockito-extensions/org.mockito.plugins.MockMaker'
- Dominant language
- Java
- Stars
- 2k
- Forks
- 262
- PR merge metrics
- No merged PRs in 30d
Description
I am working on project where we are just now switching from gradle 4.10 to gradle 5.1 and upgrading to latest version android gradle plugin
However I am encountering following error when using gradle 5.1
* What went wrong:
Execution failed for task ':app:mergeDebugAndroidTestJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> More than one file was found with OS independent path 'mockito-extensions/org.mockito.plugins.MockMaker'
Note we do have file in src/test/resources/mockito-extensions/ that allows us to mock kotlin classes.
This setup (file in src/test/.... directory) has worked fine when using gradle 4.X
Was wondering if this is a known issue and if there is way to fix it?
Contributor guide
Research direction
Reproduce the failure with Gradle 5.1 and inspect the src/test/resources/mockito-extensions/ resource alongside the :app:mergeDebugAndroidTestJavaResource task. Trace why the same mockito-extensions/org.mockito.plugins.MockMaker path is included more than once; done means the Android test resource merge completes without that duplicate-path error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, mobile, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100