File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,13 @@ download_file "https://java.oraclecloud.com/javaVersions" "${TEMP_DIR}/latest-ve
9898for version in $( jq -r ' .items[].latestReleaseVersion' " ${TEMP_DIR} /latest-versions.json" )
9999do
100100 download_file " https://java.oraclecloud.com/javaReleases/${version} " " ${TEMP_DIR} /release-${version} .json"
101+ LICENSE_TYPE=$( jq -r ' .licenseDetails.licenseType' " ${TEMP_DIR} /release-${version} .json" )
102+ if [[ " $LICENSE_TYPE " = " OTN" ]]
103+ then
104+ echo " Skipping OTN licensed versions"
105+ continue
106+ fi
107+
101108 for JDK_URL in $( jq -r ' .artifacts[].downloadUrl' " ${TEMP_DIR} /release-${version} .json" )
102109 do
103110 JDK_FILE=$( basename " ${JDK_URL} " )
159166 download_and_parse " $version "
160167done
161168
169+ jq -s -S . " ${METADATA_DIR} " /jdk-* .json > " ${METADATA_DIR} /all.json"
You can’t perform that action at this time.
0 commit comments