From 38b00294351c975a49b32646de9797c298a7e4f2 Mon Sep 17 00:00:00 2001 From: Jonas Hecht Date: Thu, 4 Feb 2021 21:38:34 +0100 Subject: [PATCH] #1622: Fixing problems on Windows with spring-javaformat-maven-plugin --- .github/workflows/build-feature.yml | 4 +++- .github/workflows/build-main.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-feature.yml b/.github/workflows/build-feature.yml index e1cc19dfd62..92c241a541f 100644 --- a/.github/workflows/build-feature.yml +++ b/.github/workflows/build-feature.yml @@ -26,4 +26,6 @@ jobs: # since we also build on Windows Powershell, we need to add a space between -D maven.javadoc.skip=true # otherwise the build will fail https://stackoverflow.com/questions/38051787/maven-javadoc-skip-true-throws-an-error - name: Build with Maven - run: mvn -B install --no-transfer-progress -D maven.javadoc.skip=true + run: | + mvn -B spring-javaformat:apply --no-transfer-progress + mvn -B install --no-transfer-progress -D maven.javadoc.skip=true diff --git a/.github/workflows/build-main.yml b/.github/workflows/build-main.yml index 0574d3d7448..7cc26ae3e36 100644 --- a/.github/workflows/build-main.yml +++ b/.github/workflows/build-main.yml @@ -26,7 +26,9 @@ jobs: # since we also build on Windows Powershell, we need to add a space between -D maven.javadoc.skip=true # otherwise the build will fail https://stackoverflow.com/questions/38051787/maven-javadoc-skip-true-throws-an-error - name: Build with Maven - run: mvn -B install --no-transfer-progress -D maven.javadoc.skip=true + run: | + mvn -B spring-javaformat:apply --no-transfer-progress + mvn -B install --no-transfer-progress -D maven.javadoc.skip=true publish-snapshot: needs: build