Skip to content

Commit

Permalink
E - Oppdatering til java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
dskarpas committed Jan 11, 2024
1 parent 376011a commit 4bf50ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bygg_branch_og_publiser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: 'Java'
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: temurin

- name: 'Bygger og tester'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bygg_mainline_og_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: 'Java'
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: temurin

- name: 'Sjekker at bygget kjører'
Expand Down
10 changes: 5 additions & 5 deletions buildSrc/ep-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom:${kotlinVersion}"))
}

assert JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17): "Java 17 or newer is required"
assert JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_21): "Java 21 or newer is required"

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

compileKotlin {
kotlinOptions.jvmTarget = "17"
kotlinOptions.jvmTarget = "21"
kotlinOptions.allWarningsAsErrors = true
kotlinOptions.freeCompilerArgs += "-Xjsr305=strict"
}

compileTestKotlin {
kotlinOptions.jvmTarget = "17"
kotlinOptions.jvmTarget = "21"
kotlinOptions.allWarningsAsErrors = true
kotlinOptions.freeCompilerArgs += "-Xjsr305=strict"
}
Expand Down

0 comments on commit 4bf50ac

Please sign in to comment.