(groovy) branch master updated: Fix groovy-build-test

2024-03-22 Thread sunlan
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
 new 251c1faf98 Fix groovy-build-test
251c1faf98 is described below

commit 251c1faf9812fe17f372b4a894349140ddf397b5
Author: Daniel Sun 
AuthorDate: Sat Mar 23 01:43:51 2024 +0800

Fix groovy-build-test

Execution failed for task ':build-logic:compileGroovy'.
> BUG! exception in phase 'semantic analysis' in source unit 
'/home/runner/work/groovy/groovy/build-logic/src/main/groovy/org/apache/groovy/gradle/CheckstyleHtmlReport.groovy'
 Unsupported class file major version 66
---
 .github/workflows/groovy-build-test.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/groovy-build-test.yml 
b/.github/workflows/groovy-build-test.yml
index 51f428f2b6..8d164c7e84 100644
--- a/.github/workflows/groovy-build-test.yml
+++ b/.github/workflows/groovy-build-test.yml
@@ -49,7 +49,7 @@ jobs:
   fail-fast: false
   matrix:
 os: [ubuntu-latest]
-java: [12, 13, 14, 15, 16, 18, 19, 20, 22]
+java: [12, 13, 14, 15, 16, 18, 19, 20]
 runs-on: ${{ matrix.os }}
 steps:
   - uses: actions/checkout@v4



(groovy) branch master updated: Fix groovy-build-test

2024-03-22 Thread sunlan
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
 new 24d3032a4a Fix groovy-build-test
24d3032a4a is described below

commit 24d3032a4acc4ff34d2edd8c9e0f1007866e4e3b
Author: Daniel Sun 
AuthorDate: Sat Mar 23 01:39:36 2024 +0800

Fix groovy-build-test

`jdk` should contain at least one value
---
 .github/workflows/groovy-build-test.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/groovy-build-test.yml 
b/.github/workflows/groovy-build-test.yml
index f06e0aa2fa..51f428f2b6 100644
--- a/.github/workflows/groovy-build-test.yml
+++ b/.github/workflows/groovy-build-test.yml
@@ -70,6 +70,7 @@ jobs:
 os: [ubuntu-latest]
 # The jdk links of "install-jdk.sh" are sometimes outdated, so we have 
to download openjdk releases from https://jdk.java.net/ by ourselves.
 jdk:
+  - 
"https://download.java.net/java/GA/jdk22/830ec9fcccef480bb3e73fb7ecafe059/36/GPL/openjdk-22_linux-x64_bin.tar.gz;
 # TODO: JDK 23 is not working for now.
 #  - 
"https://download.java.net/java/early_access/jdk23/12/GPL/openjdk-23-ea+12_linux-x64_bin.tar.gz;
 runs-on: ${{ matrix.os }}