We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a980817 commit f31eeedCopy full SHA for f31eeed
.github/workflows/build-and-deploy-java.yml
@@ -54,10 +54,15 @@ jobs:
54
run: |
55
# Print Info
56
java -version
57
- gradle --version
+ GRADLE_VERSION=$(gradle --version | awk '/^Gradle/ {print $2}' | head -1)
58
+ if [ -z "$GRADLE_VERSION" ]; then
59
+ echo "Failed to extract Gradle version, using default"
60
+ GRADLE_VERSION="9.0"
61
+ fi
62
+ echo "Gradle $GRADLE_VERSION"
63
64
cd java
- gradle wrapper --gradle-version 8.1.1
65
+ gradle wrapper --gradle-version $GRADLE_VERSION
66
./gradlew --version
67
./gradlew build
68
0 commit comments