Skip to content

chore(1.43.x): release 1.43.4-SNAPSHOT #283

chore(1.43.x): release 1.43.4-SNAPSHOT

chore(1.43.x): release 1.43.4-SNAPSHOT #283

Workflow file for this run

'on':
push:
branches:
- 1.43.x
pull_request: null
name: ci-java7
jobs:
units:
name: units (7)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v1
with:
version: 1.7
architecture: x64
- run: |
java -version
# This value is used in "-Djvm=" later
echo "JAVA7_HOME=${JAVA_HOME}" >> $GITHUB_ENV
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.8.8
- name: Build
shell: bash
run: >
# Leveraging surefire's jvm option, running the test on Java 7.
# Surefire plugin 2.22.2 is the last version for Java 7. Newer version
would fail with
# "UnsupportedClassVersionError:
org/apache/maven/surefire/booter/ForkedBooter" error.
# Why are these modules are skipped?
# google-http-client-jackson2 and google-http-client-appengine do not
work with Java 7
# any more because of Jackson and appengine library are compiled for
Java 8.
# dailymotion-simple-cmdline-sample and google-http-client-assembly
depend on
# google-http-client-jackson2
mvn --batch-mode --show-version -ntp test \
--projects '!google-http-client-jackson2,!google-http-client-appengine,!samples/dailymotion-simple-cmdline-sample,!google-http-client-assembly' \
-Dclirr.skip=true -Denforcer.skip=true -Dmaven.javadoc.skip=true \
-Dgcloud.download.skip=true -T 1C \
-Dproject.surefire.version=2.22.2 \
-Djvm=${JAVA7_HOME}/bin/java