Skip to content

Commit

Permalink
Add Java 8, 11 and 17 to build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jithendar12 authored Nov 28, 2024
1 parent f5d24c2 commit d332d68
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/maven_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,22 @@ jobs:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ubuntu-latest
strategy:
matrix:
java_version: [8, 11, 17]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '11'
java-version: ${{ matrix.java_version }}
# Target java 8 to ensure that the source is compatible with java 8
- name: Build with Maven
env:
AWS_DEFAULT_REGION: us-east-1
AWS_REGION: us-east-1
run: mvn -B clean package -T 1C --file pom.xml -Dmaven.compiler.release=8 -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN --no-transfer-progress
run: mvn -B clean package -T 1C --file pom.xml -Dmaven.compiler.release=${{ matrix.java_version }} -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN --no-transfer-progress
# Identify if any files were modified as a result of running maven build.
- name: Identify any Maven Build changes
run: >
Expand Down

0 comments on commit d332d68

Please sign in to comment.