Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ branches=(
'6'
)

# Tags that used to exist on master and have been retired there, but still exist on older branches.
# Actively retiring them makes sure users don't suddenly get upgrades that downgrade the Gradle version.
declare -A retiredTags=(
['jdk24-corretto-al2023']=1
['jdk24-graal-noble']=1
)

gitRemote="$(git remote -v | awk '/gradle\/docker-gradle/ { print $1; exit }')"

cat <<-'EOH'
Expand Down Expand Up @@ -255,6 +262,10 @@ for branch in "${branches[@]}"; do
if [ -z "$tag" ] || [ -n "${usedTags[$tag]:-}" ]; then
continue
fi
if [ -n "${retiredTags[$tag]:-}" ]; then
echo "not generating retired tag '$tag' for $dir on branch $branch" >&2
continue
fi
usedTags[$tag]=1
actualTags="${actualTags:+$actualTags, }$tag"
done
Expand Down