From 5fa17aaf8ad1b303bf81611c44e5b51c97dab18e Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Sun, 28 Apr 2019 20:14:17 -0400 Subject: [PATCH] Change JDK distribution source (#41626) We had been obtaining JDK distributions from download.java.net. This site is now presenting a certificate that does not list download.java.net as a SAN. Therefore with host verification, the build can not use this site. This commit switches to using download.oracle.com which appears to be an alternative name for the same CNAME download.oracle.com.edgekey.net. This allows our builds to resume. --- Vagrantfile | 4 ++-- distribution/build.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 96745ddfc5f0..9f4571d8d6db 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -244,7 +244,7 @@ def linux_common(config, SHELL config.vm.provision 'jdk-11', type: 'shell', inline: <<-SHELL - curl -sSL https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz | tar xz -C /opt/ + curl -sSL https://download.oracle.com/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz | tar xz -C /opt/ SHELL # This prevents leftovers from previous tests using the @@ -405,7 +405,7 @@ def windows_common(config, name) config.vm.provision 'windows-jdk-11', type: 'shell', inline: <<-SHELL New-Item -ItemType Directory -Force -Path "C:/java" - Invoke-WebRequest "https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_windows-x64_bin.zip" -OutFile "C:/java/jdk-11.zip" + Invoke-WebRequest "https://download.oracle.com/java/GA/jdk11/9/GPL/openjdk-11.0.2_windows-x64_bin.zip" -OutFile "C:/java/jdk-11.zip" Expand-Archive -Path "C:/java/jdk-11.zip" -DestinationPath "C:/java/" SHELL diff --git a/distribution/build.gradle b/distribution/build.gradle index bbf11923011c..f5b87e0beb03 100644 --- a/distribution/build.gradle +++ b/distribution/build.gradle @@ -235,7 +235,7 @@ String jdkBuild = jdkVersionMatcher.group(3) repositories { ivy { - url "https://download.java.net" + url "https://download.oracle.com" patternLayout { artifact "java/GA/jdk${jdkMajor}/${jdkBuild}/GPL/openjdk-[revision]_[module]-x64_bin.[ext]" }