Fix OpenJDK source code download url in dependencies report (#64442)

This commit is contained in:
Mark Vieira 2020-11-02 09:41:32 -08:00 committed by GitHub
parent 02d672370e
commit 991e49a53e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ tasks.register("generateDependenciesReport", ConcatFilesTask) {
target = new File(System.getProperty('csv') ?: "${project.buildDir}/reports/dependencies/es-dependencies.csv") target = new File(System.getProperty('csv') ?: "${project.buildDir}/reports/dependencies/es-dependencies.csv")
// explicitly add our dependency on the JDK // explicitly add our dependency on the JDK
String jdkVersion = VersionProperties.versions.get('bundled_jdk') String jdkVersion = VersionProperties.versions.get('bundled_jdk').split('@')[0]
String jdkMajorVersion = jdkVersion.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://hg.openjdk.java.net/jdk-updates/jdk${jdkMajorVersion}u/archive/jdk-${jdkVersion}.tar.gz"
additionalLines << "OpenJDK,${jdkVersion},https://openjdk.java.net/,GPL-2.0-with-classpath-exception,${sourceUrl}".toString() additionalLines << "OpenJDK,${jdkVersion},https://openjdk.java.net/,GPL-2.0-with-classpath-exception,${sourceUrl}".toString()