Skip to content

Commit

Permalink
Update minimum Java version to 17
Browse files Browse the repository at this point in the history
Use the same minimum Java version as the other ZAP projects.
Also, use commit in Gradle GitHub action.

Signed-off-by: thc202 <[email protected]>
  • Loading branch information
thc202 committed Jan 21, 2025
1 parent 18fb354 commit 6a33098
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 21, 22]
java: [17, 21, 22]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- uses: gradle/actions/setup-gradle@v4
- uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
- run: ./gradlew assemble
- run: ./gradlew check
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Changed
- Update Selenium to version 4.26.0.
- Update minimum Java version to 17.

## [0.22.0] - 2024-06-28
### Added
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
apply from: "$rootDir/gradle/ci.gradle.kts"

java {
def javaVersion = JavaVersion.VERSION_11
def javaVersion = JavaVersion.VERSION_17
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
Expand Down Expand Up @@ -62,7 +62,7 @@ tasks.withType(JavaCompile) {

tasks.withType(Javadoc) {
options {
links = [ 'https://docs.oracle.com/javase/11/docs/api/' ]
links = [ "https://docs.oracle.com/en/java/javase/17/docs/api/" ]
encoding = 'UTF-8'
source = java.sourceCompatibility
}
Expand Down

0 comments on commit 6a33098

Please sign in to comment.