Skip to content

Commit a118054

Browse files
committed
Adds gradle update
1 parent abc048a commit a118054

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

gradleUpdatesOne.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
latestGradle=$(curl -s https://services.gradle.org/versions/current | jq -r '.version')
4+
5+
if [[ -n $latestGradle ]]; then
6+
# YML pipeline files and more - Version
7+
echo "Scanning for yml files including GitHub action files..."
8+
for f in $(find . -name "*.yml"); do
9+
sed -E "s/gradle-version\: [0-9\.[a-z]]/gradle-version: '$latestGradle'/g" "$f" > "$f""01"
10+
mv "$f""01" "$f"
11+
done
12+
./gradlew build
13+
else
14+
echo "Unable to read latest Java LTS version!"
15+
fi

javaUpdatesOne.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
latestJavaLTS=$( curl -s https://api.adoptopenjdk.net/v3/info/available_releases | jq '.most_recent_lts')
3+
latestJavaLTS=$(curl -s https://api.adoptopenjdk.net/v3/info/available_releases | jq '.most_recent_lts')
44
distribution="adopt"
55
targetImage="eclipse-temurin:21-alpine"
66

0 commit comments

Comments
 (0)