Minor: unify kotlin version used in MavenResolverTest
This commit is contained in:
+5
-3
@@ -50,8 +50,10 @@ class MavenResolverTest : ResolversTestBase() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private val resolvedKotlinVersion = "1.5.31"
|
||||||
|
|
||||||
fun testResolveSimple() {
|
fun testResolveSimple() {
|
||||||
resolveAndCheck("org.jetbrains.kotlin:kotlin-annotations-jvm:1.3.50") { files ->
|
resolveAndCheck("org.jetbrains.kotlin:kotlin-annotations-jvm:$resolvedKotlinVersion") { files ->
|
||||||
files.any { it.name.startsWith("kotlin-annotations-jvm") }
|
files.any { it.name.startsWith("kotlin-annotations-jvm") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -64,7 +66,7 @@ class MavenResolverTest : ResolversTestBase() {
|
|||||||
listOf(compileOnly, compileRuntime).forEach { scopes ->
|
listOf(compileOnly, compileRuntime).forEach { scopes ->
|
||||||
resolveAndCheck(
|
resolveAndCheck(
|
||||||
// Need a minimal library with an extra runtime dependency
|
// Need a minimal library with an extra runtime dependency
|
||||||
"org.jetbrains.kotlin:kotlin-util-io:1.5.31",
|
"org.jetbrains.kotlin:kotlin-util-io:$resolvedKotlinVersion",
|
||||||
buildOptions(DependenciesResolverOptionsName.SCOPE to scopes)
|
buildOptions(DependenciesResolverOptionsName.SCOPE to scopes)
|
||||||
) { files ->
|
) { files ->
|
||||||
resolvedFilesCount[scopes] = files.count()
|
resolvedFilesCount[scopes] = files.count()
|
||||||
@@ -106,7 +108,7 @@ class MavenResolverTest : ResolversTestBase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun testResolveVersionsRange() {
|
fun testResolveVersionsRange() {
|
||||||
resolveAndCheck("org.jetbrains.kotlin:kotlin-annotations-jvm:(1.3.40,1.3.60)")
|
resolveAndCheck("org.jetbrains.kotlin:kotlin-annotations-jvm:(1.3.40,$resolvedKotlinVersion)")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun testResolveDifferentType() {
|
fun testResolveDifferentType() {
|
||||||
|
|||||||
Reference in New Issue
Block a user