Skip to content

Commit

Permalink
feat: prefer origin url in preference to ch maven but keep ch maven a…
Browse files Browse the repository at this point in the history
…s fallback
  • Loading branch information
MichaelHillcox committed Jun 8, 2024
1 parent 4443f6d commit de3917e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ private DownloadTask downloadTaskFor(Path librariesDir, LibraryDownload artifact

// Build the URL ourselves to use the CH maven instead of the provided 'url' attribute
return DownloadTask.builder()
.url(url)
.url(artifact.url) // Prefer the original url but use CH Maven as a fallback
.withMirror(url)
.dest(librariesDir.resolve(artifact.path))
.withValidation(validation)
.build();
Expand Down

0 comments on commit de3917e

Please sign in to comment.