Skip to content

Commit

Permalink
Gradle wrapper version update
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperancinha committed Oct 3, 2024
1 parent 7b9a506 commit 4c7f62b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gradleUpdatesOne.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ if [[ -n $latestGradle ]]; then
sed -E "s/GRADLE_VERSION \:= [0-9\.a-z]*/GRADLE_VERSION ?= $latestGradle/g" "$f" > "$f""01"
mv "$f""01" "$f"
fi

# Gradle Wrapper
echo "Scanning for gradle-wrapper.properties files..."
for f in $(find . -name "gradle-wrapper.properties"); do
sed -E 's/services\.gradle\.org\/distributions\/gradle\-[0-9\.]*\-bin\.zip/services\.gradle\.org\/distributions\/gradle\-'"$latestGradle"'-bin\.zip/g' "$f" > "$f""01"
mv "$f""01" "$f"
sed -E 's/FROM .*jre.*/FROM '"$targetImage"'/g' "$f" > "$f""01"
mv "$f""01" "$f"
done

if [ -d build ]; then rm -r build; fi
else
echo "Unable to read latest Java LTS version!"
Expand Down

0 comments on commit 4c7f62b

Please sign in to comment.