You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2023/02/19 09:19:45 UTC
[maven-jdeprscan-plugin] branch actions updated: (doc) cleanup toolchain setup
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch actions
in repository https://gitbox.apache.org/repos/asf/maven-jdeprscan-plugin.git
The following commit(s) were added to refs/heads/actions by this push:
new 8ff41a5 (doc) cleanup toolchain setup
8ff41a5 is described below
commit 8ff41a583524c5af21d10101f228ca1b8e076383
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sun Feb 19 10:19:35 2023 +0100
(doc) cleanup toolchain setup
---
.github/workflows/maven.yaml | 37 ++++++++-----------------------------
1 file changed, 8 insertions(+), 29 deletions(-)
diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml
index 4e29f8b..6dd6a4d 100644
--- a/.github/workflows/maven.yaml
+++ b/.github/workflows/maven.yaml
@@ -31,37 +31,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- - name: Checkout
- uses: actions/checkout@v2
+ - uses: actions/checkout@v2
+# https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#modifying-maven-toolchains
- name: Install Toolchain JDK
if: ${{ matrix.java == '8' }}
- uses: AdoptOpenJDK/install-jdk@v1
- with:
- version: '11'
- targets: 'TOOLCHAIN_JDK'
- impl: 'openj9'
-
- - name: Set up Toolchain
- if: ${{ matrix.java == '8' }}
- shell: bash
- run: |
- mkdir -p $HOME/.m2 \
- && cat << EOF > $HOME/.m2/toolchains.xml
- <?xml version="1.0" encoding="UTF8"?>
- <toolchains>
- <toolchain>
- <type>jdk</type>
- <provides>
- <version>11</version>
- <vendor>adopt</vendor>
- </provides>
- <configuration>
- <jdkHome>${{ env.TOOLCHAIN_JDK }}</jdkHome>
- </configuration>
- </toolchain>
- </toolchains>
- EOF
+ - name: Set up JDK
+ uses: actions/setup-java@v3
+ with:
+ distribution: 'temurin'
+ java-version: 11
+ cache: 'maven'
- name: Set up JDK
uses: actions/setup-java@v3
@@ -72,4 +52,3 @@ jobs:
- name: Build with Maven
run: mvn verify --errors --batch-mode --version '-Prun-its'
-