Error: cannot find symbol @Mock(minInvocations = 1) ^ symbol: method minInvocations() location: @interface Mock

I am trying to convert build.xml to build.gradle but at compileTestJava encountered this error tried to add dependencies but not working fine.
compile group: ‘commons-collections’, name: ‘commons-collections’, version: ‘3.2’
compile group: ‘junit’, name: ‘junit’, version: ‘4.+’
compile “org.mockito:mockito-core:1.+”
compile ‘org.springframework:spring-test:4.2.4.RELEASE’

compile group: ‘org.jmockit’, name: ‘jmockit’, version: ‘1.31’

compile group: ‘org.powermock’, name: ‘powermock-api-mockito’, version: ‘1.7.0’
compile ‘org.mockito:mockito-core:2.1.0’
tried above dependencies in my gradle.

and used
compile group: ‘org.jmockit’, name: ‘jmockit’, version: ‘1.8’
and
had error at the code level as it was not getting invoked. thanx :slight_smile: