Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding hamkrest as test dependency to multiplatform module #58

Open
sith opened this issue May 26, 2019 · 4 comments
Open

Adding hamkrest as test dependency to multiplatform module #58

sith opened this issue May 26, 2019 · 4 comments

Comments

@sith
Copy link

sith commented May 26, 2019

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

@sith
Copy link
Author

sith commented May 26, 2019

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?

@npryce
Copy link
Owner

npryce commented Feb 26, 2020

I've not published Hamkrest as a multiplatform libary. Build file changes to do so are most welcome.

@npryce
Copy link
Owner

npryce commented Feb 28, 2020

Work to make Hamkrest multiplatform is being done on the master branch.

@npryce
Copy link
Owner

npryce commented Sep 18, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants