Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move buildCyclonedxLib to Build the CycloneDX Java library and app used for SBoM generation from build.sh to sbom.sh #3209

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
make the script obtain jdk-19
julian55455 committed Feb 1, 2023
commit 83188df40ef149debc1f30a19c874f360bb20b90
3 changes: 3 additions & 0 deletions sbin/common/sbom.sh
Original file line number Diff line number Diff line change
@@ -2,6 +2,9 @@
# Build the CycloneDX Java library and app used for SBoM generation
buildCyclonedxLib() {
local javaHome="${1}"
# Download jdk-19 if JAVA_HOME is not set or is older than jdk-19
if [[ -z "${JAVA_HOME}" ]] || [[ "$(${JAVA_HOME}/bin/java -version 2>&1 | awk -F '"' '/version/ {print $2}')" < "1.9" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an empty block?

fi

# Make Ant aware of cygwin path
if [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]]; then