You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2021/12/17 13:10:02 UTC

[maven-mvnd] branch master updated (055e50f -> 992c940)

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/maven-mvnd.git.


    from 055e50f  Updated CHANGELOG.md
     new 7c354a2  Fix toLowerCase() to use Locale.ROOT
     new 1b17d8a  Use setup-graalvm@5.0
     new 992c940  Try to remove the custom setup for graalvm native-image on windows

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/test-jdk11.yaml                  | 42 +++++-----------------
 .github/workflows/verify.yaml                      | 42 +++++-----------------
 .../java/org/mvndaemon/mvnd/sync/IpcClient.java    |  2 +-
 3 files changed, 19 insertions(+), 67 deletions(-)

[maven-mvnd] 01/03: Fix toLowerCase() to use Locale.ROOT

Posted by gn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-mvnd.git

commit 7c354a2dfecf36628d90f60254b33c491181b84f
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Dec 17 13:42:33 2021 +0100

    Fix toLowerCase() to use Locale.ROOT
---
 sync/src/main/java/org/mvndaemon/mvnd/sync/IpcClient.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sync/src/main/java/org/mvndaemon/mvnd/sync/IpcClient.java b/sync/src/main/java/org/mvndaemon/mvnd/sync/IpcClient.java
index 9803db7..031af52 100644
--- a/sync/src/main/java/org/mvndaemon/mvnd/sync/IpcClient.java
+++ b/sync/src/main/java/org/mvndaemon/mvnd/sync/IpcClient.java
@@ -103,7 +103,7 @@ public class IpcClient {
                 : JavaVersion.getJavaSpec() >= 16.0f ? SocketFamily.unix : SocketFamily.inet;
 
         Path lockPath = this.lockPath.toAbsolutePath().normalize();
-        Path lockFile = lockPath.resolve(".maven-resolver-ipc-lock-" + family.name().toLowerCase());
+        Path lockFile = lockPath.resolve(".maven-resolver-ipc-lock-" + family.name().toLowerCase(Locale.ROOT));
         if (!Files.isRegularFile(lockFile)) {
             if (!Files.isDirectory(lockFile.getParent())) {
                 Files.createDirectories(lockFile.getParent());

[maven-mvnd] 03/03: Try to remove the custom setup for graalvm native-image on windows

Posted by gn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-mvnd.git

commit 992c940868a81893bb509891ae428d4e7121ec25
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Dec 17 13:55:50 2021 +0100

    Try to remove the custom setup for graalvm native-image on windows
---
 .github/workflows/test-jdk11.yaml | 36 ++++++------------------------------
 .github/workflows/verify.yaml     | 36 ++++++------------------------------
 2 files changed, 12 insertions(+), 60 deletions(-)

diff --git a/.github/workflows/test-jdk11.yaml b/.github/workflows/test-jdk11.yaml
index 078cd7f..83570bb 100644
--- a/.github/workflows/test-jdk11.yaml
+++ b/.github/workflows/test-jdk11.yaml
@@ -65,6 +65,12 @@ jobs:
     runs-on: windows-2019
     steps:
 
+      - uses: actions/checkout@v1
+
+      - name: Set VERSION env var
+        shell: bash
+        run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
+
       - name: setup-graalvm-ce
         uses: DeLaGuardo/setup-graalvm@5.0
         with:
@@ -74,36 +80,6 @@ jobs:
         shell: cmd
         run: gu install native-image
 
-      - uses: actions/cache@v2
-        with:
-          path: ${{ env.JAVA_HOME }}\bin\native-image.exe
-          key: ${{ runner.os }}-native-image-${{ env.GRAALVM_VERSION }}
-
-      - name: Check if native-image.exe exists
-        id: native_image_exe_exists
-        uses: andstor/file-existence-action@v1
-        with:
-          files: ${{ env.JAVA_HOME }}\bin\native-image.exe
-
-      - name: Compile native-image.cmd to native-image.exe
-        if: ${{ steps.native_image_exe_exists.outputs.files_exists == 'false' }}
-        shell: cmd
-        run: |
-          call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
-          "%JAVA_HOME%\bin\native-image.cmd" -jar "%JAVA_HOME%\lib\graalvm\svm-driver.jar" native-image
-
-      - name: move native-image.exe %JAVA_HOME%\bin\
-        if: ${{ steps.native_image_exe_exists.outputs.files_exists == 'false' }}
-        shell: cmd
-        run: |
-          move native-image.exe "%JAVA_HOME%\bin\"
-
-      - uses: actions/checkout@v1
-
-      - name: Set VERSION env var
-        shell: bash
-        run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
-
       - name: Skip tests when releasing from a tag
         if: startsWith(github.ref, 'refs/tags')
         shell: bash
diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml
index 23b1be6..58de2fc 100644
--- a/.github/workflows/verify.yaml
+++ b/.github/workflows/verify.yaml
@@ -65,6 +65,12 @@ jobs:
     runs-on: windows-2019
     steps:
 
+    - uses: actions/checkout@v1
+
+    - name: Set VERSION env var
+      shell: bash
+      run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
+
     - name: setup-graalvm-ce
       uses: DeLaGuardo/setup-graalvm@5.0
       with:
@@ -74,36 +80,6 @@ jobs:
       shell: cmd
       run: gu install native-image
 
-    - uses: actions/cache@v2
-      with:
-        path: ${{ env.JAVA_HOME }}\bin\native-image.exe
-        key: ${{ runner.os }}-native-image-${{ env.GRAALVM_VERSION }}
-
-    - name: Check if native-image.exe exists
-      id: native_image_exe_exists
-      uses: andstor/file-existence-action@v1
-      with:
-        files: ${{ env.JAVA_HOME }}\bin\native-image.exe
-
-    - name: Compile native-image.cmd to native-image.exe
-      if: ${{ steps.native_image_exe_exists.outputs.files_exists == 'false' }}
-      shell: cmd
-      run: |
-        call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
-        "%JAVA_HOME%\bin\native-image.cmd" -jar "%JAVA_HOME%\lib\graalvm\svm-driver.jar" native-image
-
-    - name: move native-image.exe %JAVA_HOME%\bin\
-      if: ${{ steps.native_image_exe_exists.outputs.files_exists == 'false' }}
-      shell: cmd
-      run: |
-        move native-image.exe "%JAVA_HOME%\bin\"
-
-    - uses: actions/checkout@v1
-
-    - name: Set VERSION env var
-      shell: bash
-      run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
-
     - name: Skip tests when releasing from a tag
       if: startsWith(github.ref, 'refs/tags')
       shell: bash

[maven-mvnd] 02/03: Use setup-graalvm@5.0

Posted by gn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-mvnd.git

commit 1b17d8a3228c188bc5f47c3f1412c01badc729a7
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Dec 17 13:54:24 2021 +0100

    Use setup-graalvm@5.0
---
 .github/workflows/test-jdk11.yaml | 6 +++---
 .github/workflows/verify.yaml     | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/test-jdk11.yaml b/.github/workflows/test-jdk11.yaml
index 8123df6..078cd7f 100644
--- a/.github/workflows/test-jdk11.yaml
+++ b/.github/workflows/test-jdk11.yaml
@@ -33,7 +33,7 @@ jobs:
         run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
 
       - name: setup-graalvm-ce
-        uses: DeLaGuardo/setup-graalvm@8bbfe44ef9c6f5c07e5af036a1bffd561c037d18
+        uses: DeLaGuardo/setup-graalvm@5.0
         with:
           graalvm-version: ${{ env.GRAALVM_VERSION }}
 
@@ -66,7 +66,7 @@ jobs:
     steps:
 
       - name: setup-graalvm-ce
-        uses: DeLaGuardo/setup-graalvm@8bbfe44ef9c6f5c07e5af036a1bffd561c037d18
+        uses: DeLaGuardo/setup-graalvm@5.0
         with:
           graalvm-version: ${{ env.GRAALVM_VERSION }}
 
@@ -138,7 +138,7 @@ jobs:
         run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
 
       - name: setup-graalvm-ce
-        uses: DeLaGuardo/setup-graalvm@8bbfe44ef9c6f5c07e5af036a1bffd561c037d18
+        uses: DeLaGuardo/setup-graalvm@5.0
         with:
           graalvm-version: ${{ env.GRAALVM_VERSION }}
 
diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml
index 4d270c0..23b1be6 100644
--- a/.github/workflows/verify.yaml
+++ b/.github/workflows/verify.yaml
@@ -33,7 +33,7 @@ jobs:
       run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
 
     - name: setup-graalvm-ce
-      uses: DeLaGuardo/setup-graalvm@8bbfe44ef9c6f5c07e5af036a1bffd561c037d18
+      uses: DeLaGuardo/setup-graalvm@5.0
       with:
         graalvm-version: ${{ env.GRAALVM_VERSION }}
 
@@ -66,7 +66,7 @@ jobs:
     steps:
 
     - name: setup-graalvm-ce
-      uses: DeLaGuardo/setup-graalvm@8bbfe44ef9c6f5c07e5af036a1bffd561c037d18
+      uses: DeLaGuardo/setup-graalvm@5.0
       with:
         graalvm-version: ${{ env.GRAALVM_VERSION }}
 
@@ -138,7 +138,7 @@ jobs:
       run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
 
     - name: setup-graalvm-ce
-      uses: DeLaGuardo/setup-graalvm@8bbfe44ef9c6f5c07e5af036a1bffd561c037d18
+      uses: DeLaGuardo/setup-graalvm@5.0
       with:
         graalvm-version: ${{ env.GRAALVM_VERSION }}