mockito-kotlin icon indicating copy to clipboard operation
mockito-kotlin copied to clipboard

Build Error

Open edurocks opened this issue 4 years ago • 1 comments
trafficstars

Good Afternoon, When I try to compile my project with the dependency it gives me the following error:

Could not download mockito-kotlin-2.2.0.jar (com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0) > Could not get resource 'https://jcenter.bintray.com/com/nhaarman/mockitokotlin2/mockito-kotlin/2.2.0/mockito-kotlin-2.2.0.jar'. > Could not GET 'https://jcenter.bintray.com/com/nhaarman/mockitokotlin2/mockito-kotlin/2.2.0/mockito-kotlin-2.2.0.jar'.

What should I do in order to fix this error? Thanks.

Best Regards, José Costa

edurocks avatar Jul 21 '21 15:07 edurocks

@edurocks its because jcenter/bintray shut down. You can still use it via jitpack tho however its not ideal -- note the package name is com.github.* instead of com.nhaarman.* since its autopublished by jitpack.. https://jitpack.io/p/nhaarman/mockito-kotlin

edit: seems like 2.2.0 is published on maven central https://search.maven.org/artifact/com.nhaarman.mockitokotlin2/mockito-kotlin

sphrak avatar Aug 24 '21 13:08 sphrak

Closing per above comment.

TimvdLippe avatar Dec 18 '22 19:12 TimvdLippe