Browse Source

Fix dependency report link to JDK sources (#75742)

OpenJDK sources have migrated to GitHub, so we need to update the link
we generate in our dependencies report appropriately.
Mark Vieira 4 years ago
parent
commit
c6ec78b058
1 changed files with 1 additions and 1 deletions
  1. 1 1
      distribution/build.gradle

+ 1 - 1
distribution/build.gradle

@@ -40,7 +40,7 @@ tasks.register("generateDependenciesReport", ConcatFilesTask) {
   // explicitly add our dependency on the JDK
   String jdkVersion = VersionProperties.versions.get('bundled_jdk').split('@')[0]
   String jdkMajorVersion = jdkVersion.split('[+.]')[0]
-  String sourceUrl = "https://hg.openjdk.java.net/jdk-updates/jdk${jdkMajorVersion}u/archive/jdk-${jdkVersion}.tar.gz"
+  String sourceUrl = "https://github.com/openjdk/jdk${jdkMajorVersion}u/archive/refs/tags/jdk-${jdkVersion}.tar.gz"
   additionalLines << "OpenJDK,${jdkVersion},https://openjdk.java.net/,GPL-2.0-with-classpath-exception,${sourceUrl}".toString()
 
   // Explicitly add the dependency on the RHEL UBI Docker base image