Skip to content

Commit ac02154

Browse files
authored
Bump java 25 (#623)
1 parent f0e1aab commit ac02154

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v5
22-
- name: Set up JDK 21
22+
- name: Set up JDK 25
2323
uses: actions/setup-java@v5
2424
with:
2525
distribution: temurin
26-
java-version: 21
26+
java-version: 25
2727
- name: Set current version
2828
run: mvn -B versions:set -DnewVersion=${GITHUB_REF##*/} -DprocessAllModules -DgenerateBackupPoms=false
2929
- name: Build with Maven
@@ -37,11 +37,11 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- uses: actions/checkout@v5
40-
- name: Set up JDK 21
40+
- name: Set up JDK 25
4141
uses: actions/setup-java@v5
4242
with:
4343
distribution: temurin
44-
java-version: 21
44+
java-version: 25
4545
- name: Check Spotless CodingStyle
4646
run: mvn spotless:check
4747
docker:

.java-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
21.0
1+
25.0

onyxia-api/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
FROM eclipse-temurin:25-jre AS extract
22
ARG JAR_FILE=target/*.jar
33
COPY ${JAR_FILE} application.jar
4-
RUN java -Djarmode=layertools -jar application.jar extract
4+
RUN java -Djarmode=tools -jar application.jar extract --layers --launcher --destination output
55

66
FROM eclipse-temurin:25-jre
77
WORKDIR /app
88
# Install helm
99
COPY install-helm.sh install-helm.sh
10-
RUN ./install-helm.sh
10+
RUN bash ./install-helm.sh
1111
RUN rm install-helm.sh
1212
# Create onyxia group and user
1313
RUN groupadd --gid 101 --system onyxia && \
@@ -16,10 +16,10 @@ RUN groupadd --gid 101 --system onyxia && \
1616
ENV CACERTS_DIR="/usr/local/share/ca-certificates"
1717
RUN chown onyxia $JAVA_HOME/lib/security/cacerts
1818
# copy build extraction
19-
COPY --from=extract dependencies/ ./
20-
COPY --from=extract snapshot-dependencies/ ./
21-
COPY --from=extract spring-boot-loader/ ./
22-
COPY --from=extract application/ ./
19+
COPY --from=extract output/dependencies/ ./
20+
COPY --from=extract output/snapshot-dependencies/ ./
21+
COPY --from=extract output/spring-boot-loader/ ./
22+
COPY --from=extract output/application/ ./
2323
COPY entrypoint.sh entrypoint.sh
2424
# Equivalent to 'USER onyxia', see: https://github.com/InseeFrLab/onyxia-api/pull/116
2525
USER 101

onyxia-api/install-helm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ initArch() {
2929
initOS
3030
initArch
3131
HELM_DIST="helm-${HELM_VERSION}-${OS}-${ARCH}.tar.gz"
32+
apt update && apt install -y wget tar
3233
wget https://get.helm.sh/${HELM_DIST}
3334
tar -zxvf ${HELM_DIST}
3435
mv ${OS}-${ARCH}/helm /usr/local/bin/helm

pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
</distributionManagement>
2222
<properties>
2323
<fabric8io.version>7.4.0</fabric8io.version>
24-
<maven.compiler.release>21</maven.compiler.release>
25-
<java.version>21</java.version>
24+
<maven.compiler.release>25</maven.compiler.release>
25+
<java.version>25</java.version>
2626
</properties>
2727

2828
<dependencyManagement>
@@ -70,7 +70,6 @@
7070
<configuration>
7171
<java>
7272
<googleJavaFormat>
73-
<version>1.18.1</version>
7473
<style>AOSP</style>
7574
</googleJavaFormat>
7675
</java>

0 commit comments

Comments
 (0)