Merge pull request #106650 from hercules-ci/fetchMavenArtifact-https

fetchMavenArtifact: switch mirrors to https
This commit is contained in:
Robert Hensing 2020-12-11 14:32:15 +01:00 committed by GitHub
commit 7aa5b3479d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -3,10 +3,10 @@
{ fetchurl, stdenv }:
let
defaultRepos = [
"http://repo1.maven.org/maven2"
"http://oss.sonatype.org/content/repositories/releases"
"http://oss.sonatype.org/content/repositories/public"
"http://repo.typesafe.com/typesafe/releases"
"https://repo1.maven.org/maven2"
"https://oss.sonatype.org/content/repositories/releases"
"https://oss.sonatype.org/content/repositories/public"
"https://repo.typesafe.com/typesafe/releases"
];
in
@ -50,7 +50,7 @@ let
(replaceChars ["."] ["/"] groupId)
artifactId
version
"${artifactId}-${version}-${optionalString (!isNull classifier) "-${classifier}"}.jar"
"${artifactId}-${version}${optionalString (!isNull classifier) "-${classifier}"}.jar"
];
urls_ =
if url != "" then [url]

View File

@ -4,9 +4,9 @@
let repos = [
"https://repo.clojars.org/"
"https://repo1.maven.org/"
"http://oss.sonatype.org/content/repositories/releases/"
"http://oss.sonatype.org/content/repositories/public/"
"http://repo.typesafe.com/typesafe/releases/"
"https://oss.sonatype.org/content/repositories/releases/"
"https://oss.sonatype.org/content/repositories/public/"
"https://repo.typesafe.com/typesafe/releases/"
];
in rec {