Skip to content

Commit

Permalink
⬆️ Upgrade to Java 21 and Node.js 22
Browse files Browse the repository at this point in the history
Why:
- Upgrade to the latest Java LTS and the latest Node.js.
- Now that CI uses asdf, we are no longer limited to the versions that
  are available on Semaphore CI.
  • Loading branch information
luontola committed Oct 4, 2024
1 parent 88e71b8 commit f89bb01
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
java temurin-17.0.9+9
nodejs 21.2.0
java temurin-21.0.4+7.0.LTS
nodejs 22.9.0
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM eclipse-temurin:17-jre-focal
FROM eclipse-temurin:21-jre

EXPOSE 8080
ENV PORT=8080 \
DATABASE_URL="jdbc:postgresql://localhost/territorybro?user=territorybro&password=territorybro"

# the user should have no write permissions, even to its home
RUN adduser --no-create-home --home /app app && \
RUN useradd --no-create-home --home /app app && \
mkdir /app
WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

:source-paths ["src"]
:java-source-paths ["src-java"]
:javac-options ["--release" "17"]
:javac-options ["--release" "21"]
:test-paths ["test"]
:resource-paths ["resources" "target/web-dist"]
:target-path "target/%s/"
Expand Down

0 comments on commit f89bb01

Please sign in to comment.