Skip to content

Commit

Permalink
Update to JDK21
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Feb 29, 2024
1 parent 967898a commit de09e17
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ on: [push]
jobs:
test:
runs-on: ubuntu-latest
container: adoptopenjdk:11-jdk-hotspot-bionic
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
- name: Gradle build
env:
GRADLE_CLI_OPTS: ""
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ subprojects {
group = 'com.faforever.commons'
version = '1.0-SNAPSHOT'

sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21

repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions faf-commons-lobby/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

version = "1.0.0-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
java.sourceCompatibility = JavaVersion.VERSION_21

dependencies {
api(libs.reactor.core)
Expand Down Expand Up @@ -40,6 +40,6 @@ tasks.withType<Test> {
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
jvmTarget = "21"
}
}
2 changes: 1 addition & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jdk:
- openjdk11
- openjdk21
before_install:
- sdk install kotlin

0 comments on commit de09e17

Please sign in to comment.