From e712fc9846effd2abd4318ff9cc90850685877de Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Sun, 11 Aug 2024 16:40:05 -0500 Subject: [PATCH] Try to make build work on versions not supported by format --- .github/workflows/java.yml | 2 +- java/Makefile | 9 +++++---- java/pom.xml | 1 - 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index a602beec..f28ea662 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -35,7 +35,7 @@ jobs: distribution: 'adopt' - name: Run tests - run: make ja_test + run: make ja_test ${{ matrix.java-version > 17 || 'MVN_FLAGS="-e -nf"' }} - name: Upload code coverage to Codecov uses: codecov/codecov-action@v3 diff --git a/java/Makefile b/java/Makefile index 2bfc91f4..b7228ea9 100644 --- a/java/Makefile +++ b/java/Makefile @@ -1,4 +1,5 @@ MVN?=mvn +MVN_FLAGS?= -e BLUE=\033[0;34m NC=\033[0m # No Color @@ -15,15 +16,15 @@ clean: .PHONY: test test: ../LICENSE - @$(MVN) -e test -Dtest.single + @$(MVN) $(MVN_FLAGS) test -Dtest.single test_auto: ../LICENSE - @$(MVN) -e test -T 1C + @$(MVN) $(MVN_FLAGS) test -T 1C .PHONY: test_% test_%: ../LICENSE - @$(MVN) -e test -T $* + @$(MVN) $(MVN_FLAGS) test -T $* .PHONY: lint lint: - @$(MVN) formatter:format + @$(MVN) $(MVN_FLAGS) formatter:format diff --git a/java/pom.xml b/java/pom.xml index ac10381c..2b6d8391 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -73,7 +73,6 @@ net.revelc.code.formatter formatter-maven-plugin 2.24.1 - true (\W+\.?[^\W]+\(.*\);?\n)+ \n