Skip to content

Commit

Permalink
Add RHEL UBI to dependency report (#62888)
Browse files Browse the repository at this point in the history
Add information about RHEL UBI to the dependency report task.
  • Loading branch information
pugnascotia committed Sep 29, 2020
1 parent 4c8c3c8 commit cc33df8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions distribution/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ tasks.register("generateDependenciesReport", ConcatFilesTask) {
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()

// Explicitly add the dependency on the RHEL UBI Docker base image
String[] rhelUbiFields = [
'Red Hat Universal Base Image minimal',
'8',
'https://catalog.redhat.com/software/containers/ubi8/ubi-minimal/5c359a62bed8bd75a2c3fba8',
'Custom;https://www.redhat.com/licenses/EULA_Red_Hat_Universal_Base_Image_English_20190422.pdf',
'https://oss-dependencies.elastic.co/redhat/ubi/ubi-minimal-8-source.tar.gz'
]
additionalLines << rhelUbiFields.join(',')
}

/*****************************************************************************
Expand Down

0 comments on commit cc33df8

Please sign in to comment.