Skip to content

Commit becf6cf

Browse files
committed
jdk21 since jdk23 of liberica does not work somehow
1 parent 66994ba commit becf6cf

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/setup-java@v4
1818
with:
1919
distribution: temurin
20-
java-version: 23
20+
java-version: 21
2121
- uses: gradle/actions/setup-gradle@v4
2222
- name: Test with Gradle
2323
run: ./gradlew build

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM bellsoft/liberica-openjdk-alpine:23
1+
FROM bellsoft/liberica-openjdk-alpine:21
22
COPY ./build/libs/merlin.jar app.jar
33
ENTRYPOINT ["java", "-Dspring.profiles.active=prod", "-Xmx180M", "-Xss256k", "-jar", "/app.jar"]

backend/src/main/resources/schema.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ create table IF NOT EXISTS logs
1212
id serial primary key,
1313
session char(36) not null,
1414
level int not null,
15-
prompt char(200) not null,
16-
response char(200) not null
15+
prompt text not null,
16+
response text not null
1717
);

build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
application
3-
id("org.springframework.boot") version "3.3.2"
3+
alias(libs.plugins.spring.boot)
44
}
55

66
application {
@@ -16,7 +16,7 @@ allprojects {
1616
apply(plugin = "java")
1717
java {
1818
toolchain {
19-
languageVersion.set(JavaLanguageVersion.of(23))
19+
languageVersion.set(JavaLanguageVersion.of(21))
2020
}
2121
}
2222
}

gradle/libs.versions.toml

+1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ spring-session-jdbc = { module = "org.springframework.session:spring-session-jdb
2222
error-prone = { module = "com.google.errorprone:error_prone_core", version.ref = "error-prone-core" }
2323

2424
[plugins]
25+
spring-boot = { id = "org.springframework.boot", version.ref = "spring-boot" }
2526
error-prone = { id = "net.ltgt.errorprone", version.ref = "error-prone-plugin" }

0 commit comments

Comments
 (0)