Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 7 additions & 2 deletions .github/workflows/build-and-deploy-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,15 @@ jobs:
run: |
# Print Info
java -version
gradle --version
GRADLE_VERSION=$(gradle --version | awk '/^Gradle/ {print $2}' | head -1)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using hard-coded Gradle versions, we extract the version number from the current release.

if [ -z "$GRADLE_VERSION" ]; then
echo "Failed to extract Gradle version, using default"
GRADLE_VERSION="9.0"
fi
echo "Gradle $GRADLE_VERSION"

cd java
gradle wrapper --gradle-version 8.1.1
gradle wrapper --gradle-version $GRADLE_VERSION
./gradlew --version
./gradlew build

Expand Down
5 changes: 3 additions & 2 deletions java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
ext.junitVersion = '5.9.0'
ext.mockitoVersion = '5.2.0'
ext.postgresVersion = '42.5.1'
ext.jooqVersion = '3.17.7'
ext.jooqVersion = '3.19.1'
ext.guiceVersion = '5.1.0'
}

Expand All @@ -14,7 +14,7 @@ plugins {
id 'com.google.protobuf' version "${protobufPlugInVersion}"
id 'war'
id 'idea'
id 'nu.studer.jooq' version '8.0'
id 'nu.studer.jooq' version '8.2.2'
}

repositories {
Expand Down Expand Up @@ -69,6 +69,7 @@ dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.9.0"
testImplementation "org.hamcrest:hamcrest-library:2.2"
testImplementation "org.testcontainers:junit-jupiter:1.17.6"
testImplementation "org.testcontainers:postgresql:1.17.6"
Expand Down
Loading