Skip to content

Commit

Permalink
BXMSPROD-1475 maven version (apache#3835)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ginxo committed Sep 16, 2021
1 parent df244a3 commit 3181cea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/kogito_full_downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,23 @@ jobs:
strategy:
matrix:
java-version: [11]
maven-version: ['3.8.1']
fail-fast: false
runs-on: ubuntu-latest
name: Maven Build
steps:
- name: Set up JDK
uses: actions/setup-java@v1
- name: Setup Maven And Java Version
uses: s4u/setup-maven-action@v1.2.1
with:
java-version: ${{ matrix.java-version }}
maven-version: ${{ matrix.maven-version }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-${{ matrix.java-version }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-${{ matrix.java-version }}-m2
- name: Build Chain ${{ matrix.java-version }}
key: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }}-m2
- name: Build Chain ${{ matrix.java-version }}. Maven ${{ matrix.maven-version }}
id: build-chain
uses: kiegroup/github-action-build-chain@v2.6.8
with:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,27 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
java-version: [8, 11]
maven-version: ['3.8.1']
fail-fast: false
runs-on: ${{ matrix.os }}
name: Maven Build
steps:
- name: Support longpaths
if: ${{ matrix.os == 'windows-latest' }}
run: git config --system core.longpaths true
- name: Set up JDK
uses: actions/setup-java@v1
- name: Setup Maven And Java Version
uses: s4u/setup-maven-action@v1.2.1
with:
java-version: ${{ matrix.java-version }}
maven-version: ${{ matrix.maven-version }}
# See https://docs.github.com/en/actions/guides/building-and-testing-java-with-maven#caching-dependencies
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-${{ matrix.java-version }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-${{ matrix.java-version }}-m2
- name: Build Chain ${{ matrix.java-version }}
key: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }}-m2
- name: Build Chain ${{ matrix.java-version }}. Maven ${{ matrix.maven-version }}
id: build-chain
uses: kiegroup/github-action-build-chain@v2.6.8
with:
Expand Down

0 comments on commit 3181cea

Please sign in to comment.