Skip to content

Commit

Permalink
update jdk
Browse files Browse the repository at this point in the history
  • Loading branch information
motoki317 committed Mar 21, 2024
1 parent c36c581 commit ab87110
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tools/refactoringminer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:8.6.0-jdk17 AS builder
FROM gradle:8.6.0-jdk21 AS builder

WORKDIR /work

Expand All @@ -10,7 +10,7 @@ COPY . .
RUN gradle jar --no-daemon


FROM amazoncorretto:17 AS runner
FROM amazoncorretto:21 AS runner

WORKDIR /work

Expand Down
2 changes: 1 addition & 1 deletion tools/refactoringminer/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {

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

Expand Down
6 changes: 3 additions & 3 deletions tools/refdiff/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:8.6.0-jdk17 AS builder
FROM gradle:8.6.0-jdk21 AS builder

WORKDIR /work

Expand All @@ -10,14 +10,14 @@ COPY . .
RUN gradle jar --no-daemon


FROM amazoncorretto:17 AS runner
FROM amazoncorretto:21 AS runner

WORKDIR /work

RUN yum install -y git

# For refdiff-js
# With amazoncorretto:17-alpine, jdk crashes for some reason
# With amazoncorretto:21-alpine, jdk crashes for some reason
# node v18 needs glibc 2.27 or 2.28 (meanwhile amazoncorretto:17 has 2.26)
RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash -
RUN yum install -y nodejs && \
Expand Down
2 changes: 1 addition & 1 deletion tools/refdiff/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {

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

Expand Down

0 comments on commit ab87110

Please sign in to comment.