From 896504de517daeb6d2af37ce64a891dc2281e5ae Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 13 Feb 2022 19:23:57 +0800 Subject: [PATCH] Test Java (native) client in JDK 11 (#11599) * test java native client in jdk11 * test java natvie async * remove java native from pom.xml * revert changes --- .../workflows/samples-java-client-jdk11.yaml | 37 +++++++++++++++++++ pom.xml | 14 ------- 2 files changed, 37 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/samples-java-client-jdk11.yaml diff --git a/.github/workflows/samples-java-client-jdk11.yaml b/.github/workflows/samples-java-client-jdk11.yaml new file mode 100644 index 000000000000..ba45ec604483 --- /dev/null +++ b/.github/workflows/samples-java-client-jdk11.yaml @@ -0,0 +1,37 @@ +name: Samples Java Client JDK11 + +on: + push: + paths: + - 'samples/client/petstore/java/native**' + pull_request: + paths: + - 'samples/client/petstore/java/native**' +jobs: + build: + name: Build Java Client JDK11 + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sample: + # clients + - samples/client/petstore/java/native + - samples/client/petstore/java/native-async + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: 11 + - name: Cache maven dependencies + uses: actions/cache@v2.1.7 + env: + cache-name: maven-repository + with: + path: | + ~/.m2 + key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} + - name: Build + working-directory: ${{ matrix.sample }} + run: mvn clean package diff --git a/pom.xml b/pom.xml index ea7314f1dc48..fb5c330ba433 100644 --- a/pom.xml +++ b/pom.xml @@ -1357,20 +1357,6 @@ - - - samples.droneio - - - env - samples.droneio - - - - - samples/client/petstore/java/native - - samples.misc