Fix external issue with org.uberfire library in MavenResolverTest

Use kotlin library instead.

java.lang.AssertionError: org.eclipse.aether.resolution.DependencyResolutionException: Failed to collect dependencies at org.uberfire:uberfire-io:jar:7.39.0.Final -> org.uberfire:uberfire-nio2-model:jar:7.39.0.Final -> com.thoughtworks.xstream:xstream:jar:1.4.11.1 -> xmlpull:xmlpull:jar:1.2.0
This commit is contained in:
Nikolay Krasko
2021-10-05 15:49:46 +03:00
parent 464331d196
commit 31e30dc852
@@ -64,11 +64,12 @@ class MavenResolverTest : ResolversTestBase() {
listOf(compileOnly, compileRuntime).forEach { scopes -> listOf(compileOnly, compileRuntime).forEach { scopes ->
resolveAndCheck( resolveAndCheck(
"org.uberfire:uberfire-io:7.39.0.Final", // Need a minimal library with an extra runtime dependency
"org.jetbrains.kotlin:kotlin-util-io:1.5.31",
buildOptions(DependenciesResolverOptionsName.SCOPE to scopes) buildOptions(DependenciesResolverOptionsName.SCOPE to scopes)
) { files -> ) { files ->
resolvedFilesCount[scopes] = files.count() resolvedFilesCount[scopes] = files.count()
files.any { it.name.startsWith("uberfire-commons") } true
} }
} }