Skip to content

Commit

Permalink
deps: Upgrade Maven resolver to version 2.0.0
Browse files Browse the repository at this point in the history
Note that `maven-resolver-transport-http` has been renamed to
`maven-resolver-transport-apache`, see [1].

[1]: apache/maven-resolver#375
  • Loading branch information
renovate[bot] authored and sschuberth committed Jul 6, 2024
1 parent 36f8c3b commit cc9b120
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ log4jApi = "2.23.1"
log4jApiKotlin = "1.4.0"
logback = "1.5.6"
maven = "3.9.8"
mavenResolver = "1.9.21"
mavenResolver = "2.0.0"
mockk = "1.13.11"
mordant = "2.7.0"
okhttp = "4.12.0"
Expand Down Expand Up @@ -148,8 +148,8 @@ maven-model = { module = "org.apache.maven:maven-model", version.ref = "maven" }
maven-model-builder = { module = "org.apache.maven:maven-model-builder", version.ref = "maven" }
maven-resolver-api = { module = "org.apache.maven.resolver:maven-resolver-api", version.ref = "mavenResolver" }
maven-resolver-connector-basic = { module = "org.apache.maven.resolver:maven-resolver-connector-basic", version.ref = "mavenResolver" }
maven-resolver-transport-apache = { module = "org.apache.maven.resolver:maven-resolver-transport-apache", version.ref = "mavenResolver" }
maven-resolver-transport-file = { module = "org.apache.maven.resolver:maven-resolver-transport-file", version.ref = "mavenResolver" }
maven-resolver-transport-http = { module = "org.apache.maven.resolver:maven-resolver-transport-http", version.ref = "mavenResolver" }
maven-resolver-transport-wagon = { module = "org.apache.maven.resolver:maven-resolver-transport-wagon", version.ref = "mavenResolver" }
mockk = { module = "io.mockk:mockk", version.ref = "mockk" }
mordant = { module = "com.github.ajalt.mordant:mordant", version.ref = "mordant" }
Expand All @@ -176,4 +176,4 @@ xz = { module = "org.tukaani:xz", version.ref = "xz" }
exposed = ["exposed-core", "exposed-dao", "exposed-jdbc", "exposed-javaTime", "exposed-json"]
hoplite = ["hoplite-core", "hoplite-yaml"]
ks3 = ["ks3-jdk", "ks3-standard"]
mavenResolver = ["maven-resolver-connector-basic", "maven-resolver-transport-file", "maven-resolver-transport-http", "maven-resolver-transport-wagon"]
mavenResolver = ["maven-resolver-connector-basic", "maven-resolver-transport-apache", "maven-resolver-transport-file", "maven-resolver-transport-wagon"]
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,9 @@ class MavenSupport(private val workspaceReader: WorkspaceReader) {

val localPath = repositorySystemSession.localRepositoryManager
.getPathForRemoteArtifact(artifact, info.repository, "project")
val downloadFile = File(repositorySystemSession.localRepositoryManager.repository.basedir, localPath)
val downloadPath = repositorySystemSession.localRepositoryManager.repository.basePath.resolve(localPath)

Check warning on line 583 in plugins/package-managers/maven/src/main/kotlin/utils/MavenSupport.kt

View check run for this annotation

Codecov / codecov/patch

plugins/package-managers/maven/src/main/kotlin/utils/MavenSupport.kt#L583

Added line #L583 was not covered by tests

val artifactDownload = ArtifactDownload(artifact, "project", downloadFile, policy.checksumPolicy)
val artifactDownload = ArtifactDownload(artifact, "project", downloadPath.toFile(), policy.checksumPolicy)

Check warning on line 585 in plugins/package-managers/maven/src/main/kotlin/utils/MavenSupport.kt

View check run for this annotation

Codecov / codecov/patch

plugins/package-managers/maven/src/main/kotlin/utils/MavenSupport.kt#L585

Added line #L585 was not covered by tests
artifactDownload.isExistenceCheck = true
artifactDownload.listener = object : AbstractTransferListener() {
override fun transferFailed(event: TransferEvent?) {
Expand Down

0 comments on commit cc9b120

Please sign in to comment.