1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-10-18 12:15:58 +02:00

[build.gradle] Add junit-platform-launcher add testRuntimeOnly

Fixes

   NoSuchMethodError: 'java.util.Set org.junit.platform.engine.TestDescriptor.getAncestors()

when running unit tests in Eclipse.
This commit is contained in:
Florian Schmaus 2024-05-20 15:09:22 +02:00
parent 617d1bfff2
commit 1bf0aed0f5

View file

@ -313,6 +313,8 @@ tasks.withType(Javadoc) {
testFixturesApi "org.junit.jupiter:junit-jupiter-api:$junitVersion" testFixturesApi "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion" testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
// https://stackoverflow.com/a/77274251/194894
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
// The smack-extensions subproject uses mockito in its fest // The smack-extensions subproject uses mockito in its fest
// fixtures, and we want to have mockito also available in // fixtures, and we want to have mockito also available in