Skip to content

Commit

Permalink
Flyway version issue (#1682)
Browse files Browse the repository at this point in the history
* Flyway version issue

* Revert to Java 17 to fix Flyway issues
  • Loading branch information
kiran-yenigala-hmcts authored Sep 26, 2024
1 parent 08baaf8 commit a23f48a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG APP_INSIGHTS_AGENT_VERSION=3.5.2
ARG PLATFORM=""
FROM hmctspublic.azurecr.io/base/java${PLATFORM}:21-distroless
FROM hmctspublic.azurecr.io/base/java${PLATFORM}:17-distroless

COPY lib/applicationinsights.json /opt/app/
COPY build/libs/rd-professional-api.jar /opt/app/
Expand Down
4 changes: 2 additions & 2 deletions acb.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 1.0-preview-1
steps:
- id: pull-base-image-amd64
cmd: docker pull --platform linux/amd64 hmctspublic.azurecr.io/base/java:21-distroless && docker tag hmctspublic.azurecr.io/base/java:21-distroless hmctspublic.azurecr.io/base/java/linux/amd64:21-distroless
cmd: docker pull --platform linux/amd64 hmctspublic.azurecr.io/base/java:17-distroless && docker tag hmctspublic.azurecr.io/base/java:17-distroless hmctspublic.azurecr.io/base/java/linux/amd64:17-distroless
retries: 3
retryDelay: 3
when: ["-"]
Expand All @@ -18,7 +18,7 @@ steps:
- pull-base-image-amd64

- id: pull-base-image-arm64
cmd: docker pull --platform linux/arm64 hmctspublic.azurecr.io/base/java:21-distroless && docker tag hmctspublic.azurecr.io/base/java:21-distroless hmctspublic.azurecr.io/base/java/linux/arm64:21-distroless
cmd: docker pull --platform linux/arm64 hmctspublic.azurecr.io/base/java:17-distroless && docker tag hmctspublic.azurecr.io/base/java:17-distroless hmctspublic.azurecr.io/base/java/linux/arm64:17-distroless
retries: 3
retryDelay: 3
when:
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ plugins {
id 'io.spring.dependency-management' version '1.1.6'
id 'org.sonarqube' version '5.0.0.4638'
id 'org.springframework.boot' version '3.3.1'
id "org.flywaydb.flyway" version '10.18.0'
id "org.flywaydb.flyway" version '10.18.1'
id 'au.com.dius.pact' version '4.1.7'// do not change, otherwise serenity report fails
}

Expand Down Expand Up @@ -58,7 +58,7 @@ version = '0.1.0'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
languageVersion = JavaLanguageVersion.of(17)
}
}

Expand Down Expand Up @@ -375,8 +375,8 @@ dependencies {
//Fix for CVE-2021-29425
implementation 'commons-io:commons-io:2.8.0'

implementation group: 'org.flywaydb', name: 'flyway-core', version: '10.18.0'
runtimeOnly group: 'org.flywaydb', name: 'flyway-database-postgresql', version: '10.18.0'
implementation group: 'org.flywaydb', name: 'flyway-core', version: '10.18.1'
runtimeOnly group: 'org.flywaydb', name: 'flyway-database-postgresql', version: '10.18.1'
implementation group: 'org.postgresql', name: 'postgresql', version: '42.7.4'

implementation group: 'com.google.guava', name: 'guava', version: '32.1.3-jre'
Expand Down

0 comments on commit a23f48a

Please sign in to comment.