diff --git a/distribution/build.gradle b/distribution/build.gradle index 13170e66f710..29f6036195b8 100644 --- a/distribution/build.gradle +++ b/distribution/build.gradle @@ -44,7 +44,7 @@ tasks.register("generateDependenciesReport", ConcatFilesTask) { target = new File(System.getProperty('csv') ?: "${project.buildDir}/reports/dependencies/es-dependencies.csv") // 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 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()