-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
FindException: Module org.apiguardian.api not found, required by org.junit.platform.launcher #2730
Comments
🤔 What's the difference to this Gradle configuration? "Just" the usage of the BOM file? Groovy: https://github.com/junit-team/junit5-samples/blob/main/junit5-jupiter-starter-gradle-groovy/build.gradle |
I have only checked https://github.com/junit-team/junit5-samples/tree/main/junit5-jupiter-starter-gradle now but I don't think that makes a difference. The main difference is usage of the module system. When I edit
I get the same exception as above. |
After upgrading from 5.7.2 to 5.8.1, I have the same issue. |
The problem seems to be that Gradle is bundling a pre-5.8 version of junit-platform-launcher. Adding an explicit @Marcono1234 Could you please raise an issue with Gradle to get this upgraded? |
Have created gradle/gradle#18627; hopefully that includes all necessary information. |
Description
When using a
module-info.java
as part of the test sources, Gradle fails executing the tests:It appears #2695 tried to solve that issue for 5.8.0, but I am seeing this behavior for 5.8.0 and 5.8.1.
Manually adding
testImplementation("org.apiguardian:apiguardian-api:1.1.2")
as dependency solves this issue.Steps to reproduce
./gradlew build
❌ It fails with a
FindException
Context
org.junit.jupiter:junit-jupiter:5.8.1
The text was updated successfully, but these errors were encountered: