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

Move vis-svg-mapper-batik dependency on test-common to commonTest source set #455

Merged
merged 1 commit into from
Oct 8, 2021

Conversation

randomnetcat
Copy link
Contributor

Currently vis-svg-mapper-batik has a commonMain dependency on the test-common project. When creating the shadow jar for JVM batik, this results in the jar having a service provider for kotlin.test.AsserterContributor with kotlin.test.junit.JUnitContributor. This results in errors when using the library in a project that uses a different kotlin-test implementation (such as JUnit 5).

In my case, the following error results: java.util.ServiceConfigurationError: kotlin.test.AsserterContributor: Provider kotlin.test.junit.JUnitContributor not found.

This patch moves the dependency to the commonTest source set, ultimately removing the service provider from the shadow jar.

@alshan
Copy link
Collaborator

alshan commented Oct 8, 2021

Well done, thanx!

@alshan alshan merged commit 455e2fb into JetBrains:master Oct 8, 2021
@randomnetcat randomnetcat deleted the batik-test-dependency branch October 8, 2021 00:50
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

Successfully merging this pull request may close these issues.

None yet

2 participants