You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2022/03/24 19:50:50 UTC

[avro] branch branch-1.11 updated: AVRO-3467: Try to build with JDK 18 (stable) and 19 (early access) (#1619)

This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch branch-1.11
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/branch-1.11 by this push:
     new 8615509  AVRO-3467: Try to build with JDK 18 (stable) and 19 (early access) (#1619)
8615509 is described below

commit 861550958089f14576ad9f714d082a7c335e2d28
Author: Martin Grigorov <ma...@users.noreply.github.com>
AuthorDate: Thu Mar 24 21:50:12 2022 +0200

    AVRO-3467: Try to build with JDK 18 (stable) and 19 (early access) (#1619)
    
    * AVRO-3467: Try to build with JDK 18 (stable) and 19 (early access)
    
    Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
    
    * AVRO-3467: Use Oracle JDK for 18/19
    
    Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
    (cherry picked from commit c2acf468f206cba00a77dc2da462ac3029640cba)
---
 .github/workflows/test-lang-java.yml | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/test-lang-java.yml b/.github/workflows/test-lang-java.yml
index ef384a6..934379e 100644
--- a/.github/workflows/test-lang-java.yml
+++ b/.github/workflows/test-lang-java.yml
@@ -43,7 +43,8 @@ jobs:
         - '8'
         - '11'
         - '17'
-        - '18-ea'
+        - '18'
+        - '19'
     steps:
       - uses: actions/checkout@v2
 
@@ -55,12 +56,21 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
 
-      - name: Setup Java
+      - name: Setup Temurin JDK
+        if: matrix.java == '8' || matrix.java == '11' || matrix.java == '17'
         uses: actions/setup-java@v2
         with:
           distribution: 'temurin'
           java-version: ${{ matrix.java }}
 
+      - name: Setup Oracle JDK
+        if: matrix.java == '18' || matrix.java == '19'
+        uses: oracle-actions/setup-java@v1
+        with:
+          website: jdk.java.net
+          release: ${{ matrix.java }}
+          version: latest
+
       - name: Lint
         run: ./build.sh lint