File tree Expand file tree Collapse file tree 5 files changed +17
-6
lines changed
Expand file tree Collapse file tree 5 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ARG GITLAB_MAVEN_REGISTRY_URL
44WORKDIR /app
55COPY . /app
66
7- RUN ./gradlew clean -x test build
7+ RUN ./gradlew clean -x test build -PlocalRepo=/app/.m2/repository
88
99FROM eclipse-temurin:21-jre AS backend
1010COPY --from=build /app/cf-application/build/libs/*-all.jar /app.jar
Original file line number Diff line number Diff line change @@ -27,7 +27,17 @@ subprojects {
2727 }
2828
2929 repositories {
30- mavenLocal()
30+ val repoPath = project.findProperty(" localRepo" ).toString()
31+ val repoFile = file(repoPath)
32+ if (repoFile.exists() && repoFile.isDirectory) {
33+ maven {
34+ url = repoFile.toURI()
35+ }
36+ println (" Using validated local repo: ${repoFile.absolutePath} " )
37+ } else {
38+ logger.warn(" Custom repo path '$repoPath ' is invalid. Falling back to default." )
39+ mavenLocal()
40+ }
3141 mavenCentral()
3242 maven {
3343 name = " Central Portal Snapshots"
@@ -61,7 +71,8 @@ subprojects {
6171 extra[" springBootVersion" ] = " 3.3.3"
6272 extra[" springCloudVersion" ] = " 2023.0.0"
6373 extra[" jMoleculesVersion" ] = " 2023.1.0"
64- extra[" cfLobPlatformVersion" ] = " 1.3.0-PR509-dfde6a6-GHRUN21662557709"
74+ extra[" flyway.version" ] = " 10.20.1"
75+ extra[" cfLobPlatformVersion" ] = " 1.3.0-PR547-7ae42ac-GHRUN21672119195"
6576
6677 dependencies {
6778 compileOnly(" org.projectlombok:lombok:1.18.32" )
Original file line number Diff line number Diff line change 11services :
22
33 postgres :
4- image : postgres:16.3
4+ image : postgres:17
55 environment :
66 - POSTGRES_USER=postgres
77 - POSTGRES_PASSWORD=postgres
Original file line number Diff line number Diff line change 11services :
22
33 postgres :
4- image : postgres:16.3
4+ image : postgres:17
55 environment :
66 - POSTGRES_USER=postgres
77 - POSTGRES_PASSWORD=postgres
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ services:
1212
1313 postgres :
1414 restart : unless-stopped
15- image : postgres:16.3
15+ image : postgres:17
1616 environment :
1717 - POSTGRES_USER=postgres
1818 - POSTGRES_PASSWORD=postgres
You can’t perform that action at this time.
0 commit comments