Skip to content

Commit

Permalink
Bytte til java21 (#2024)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Update build-master.yaml

* Update build-pull-request.yaml

* Update deploy-preprod.yml

* Update build.gradle.kts
  • Loading branch information
tendestad authored Apr 15, 2024
1 parent 9c5db80 commit ffee3bc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: temurin
cache: gradle

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: temurin
cache: gradle
- name: Kjør tester & bygg JAR
run: ./gradlew clean test shadowjar
env:
GITHUB_TOKEN: ${{ secrets.READER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.READER_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preprod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: temurin
cache: gradle

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/navikt/baseimages/temurin:17-appdynamics
FROM ghcr.io/navikt/baseimages/temurin:21-appdynamics
ENV APPD_ENABLED=true
LABEL org.opencontainers.image.source=https://github.com/navikt/k9-los-api

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ repositories {

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

Expand Down

0 comments on commit ffee3bc

Please sign in to comment.