Skip to content

Commit 3bf41af

Browse files
committed
Fix Oracle metadata generation
1 parent 7512bb1 commit 3bf41af

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/oracle.bash

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ download_file "https://java.oraclecloud.com/javaVersions" "${TEMP_DIR}/latest-ve
9898
for version in $(jq -r '.items[].latestReleaseVersion' "${TEMP_DIR}/latest-versions.json")
9999
do
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}")
@@ -159,3 +166,4 @@ do
159166
download_and_parse "$version"
160167
done
161168

169+
jq -s -S . "${METADATA_DIR}"/jdk-*.json > "${METADATA_DIR}/all.json"

0 commit comments

Comments
 (0)