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

"Unresolved reference: assertThat" on 0.26.1 #477

Open
dirkluijk opened this issue Jun 7, 2023 · 3 comments
Open

"Unresolved reference: assertThat" on 0.26.1 #477

dirkluijk opened this issue Jun 7, 2023 · 3 comments

Comments

@dirkluijk
Copy link

When upgrading from version 0.25.0 to 0.26.1, I suddenly get this weird compiler error:

/path/to/Test.kt:73:9
Kotlin: Unresolved reference: assertThat

my code just imports

import assertk.assertThat
import assertk.assertions.*

Is the artifact broken?

@esiha
Copy link

esiha commented Jun 16, 2023

I had the same issue, found the solution on another project with which I also had the issue.
If you use Maven, use assertk-jvm instead of assertk as artifactId.

Gradle is able to select the correct multi-platform dependency, Maven isn't.

@esiha
Copy link

esiha commented Jun 16, 2023

Credit where it's due: InsertKoinIO/koin#1450

@dirkluijk
Copy link
Author

I am using

<dependency>
    <groupId>com.willowtreeapps.assertk</groupId>
    <artifactId>assertk-jvm</artifactId>
    <version>0.26.1</version>
    <scope>test</scope>
</dependency>

and the problem still persists.

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