Skip to content

Commit

Permalink
Upgrade to Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
will-molloy committed Oct 14, 2023
1 parent 18149b5 commit 9c60439
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Java 19
- name: Setup Java 21
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 19
java-version: 21

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand All @@ -42,11 +42,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Java 19
- name: Setup Java 21
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 19
java-version: 21

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ template repository for Java projects using Gradle

## Features

- JDK 19 ([Amazon Corretto](https://aws.amazon.com/corretto/))
- Gradle 7
- JDK 21 ([Amazon Corretto](https://aws.amazon.com/corretto/))
- Gradle 8
- [GitHub Actions](https://github.com/features/actions) CICD
- Automatic code formatting via [Spotless](https://github.com/diffplug/spotless)
- Code style analysis via [Checkstyle](https://github.com/checkstyle/checkstyle)
Expand Down
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ allprojects {
subprojects {
apply(plugin = "java")
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_19
targetCompatibility = JavaVersion.VERSION_19
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

apply(plugin = "com.diffplug.spotless")
Expand Down Expand Up @@ -89,7 +89,7 @@ subprojects {
}
}

val previewFeatures = listOf("--enable-preview")
val previewFeatures = emptyList<String>()
tasks.withType<JavaCompile> {
options.compilerArgs = previewFeatures
}
Expand Down

0 comments on commit 9c60439

Please sign in to comment.