Skip to content

Commit

Permalink
Use required Java version in CI
Browse files Browse the repository at this point in the history
Attempt to fix this build issue on Windows:

```
What went wrong:
Execution failed for task ':compileJava'.
> Error while evaluating property 'javaCompiler' of task ':compileJava'.
   > Failed to calculate the value of task ':compileJava' property 'javaCompiler'.
      > Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=11, vendor=any, implementation=vendor-specific} for WINDOWS on x86_64.
         > No locally installed toolchains match and toolchain download repositories have not been configured.
```
  • Loading branch information
garfieldnate committed Aug 13, 2024
1 parent f5731f8 commit 195bb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"
java-version: "11"

- name: Build with Gradle
run: ./gradlew build --no-daemon
Expand Down

0 comments on commit 195bb71

Please sign in to comment.