hamkrest
hamkrest copied to clipboard
Adding hamkrest as test dependency to multiplatform module
Is it possible to add hamkrest as test dependency in multiplatform package?
I am trying to do this
commonTest { dependencies { implementation kotlin('test-common') implementation kotlin('test-annotations-common') implementation 'com.natpryce:hamkrest:1.7.0.0' } }
but that doesn't work. I can see the lib in Intellij but classes are not accessible in tests
This one works
jvmMain { dependencies { implementation kotlin('stdlib-jdk8') implementation 'com.natpryce:hamkrest:1.7.0.0' } }
but it is for jvm. Is there way to do it for common package?
I've not published Hamkrest as a multiplatform libary. Build file changes to do so are most welcome.
Work to make Hamkrest multiplatform is being done on the master branch.
There are now two branches, a jvm branch, which is the current mainline, and multiplatform where a multiplatform build is being explored. Kotlin multiplatform builds are still alpha, so this work is not very active.