From 95be31ff04ef7e31cbd54968dff40e6e5c194a05 Mon Sep 17 00:00:00 2001 From: Vincent Paturet Date: Tue, 10 Dec 2024 11:56:55 +0100 Subject: [PATCH] Configure Prettier --- .github/workflows/push.yml | 2 +- pom.xml | 50 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 790cabe3..bbd1bd5a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -47,7 +47,7 @@ jobs: SONAR_PROJECT_NAME: ${{ github.event.repository.name }} SONAR_PROJECT_KEY: entur_${{ github.event.repository.name }} run: | - mvn -s .github/workflows/settings.xml \ + mvn -Psonar -s .github/workflows/settings.xml \ org.jacoco:jacoco-maven-plugin:prepare-agent verify \ org.jacoco:jacoco-maven-plugin:report sonar:sonar \ -Dmaven.main.skip \ diff --git a/pom.xml b/pom.xml index 3f622523..8a1ffde9 100644 --- a/pom.xml +++ b/pom.xml @@ -91,6 +91,10 @@ 3.0 3.0.0 1.6 + 4.0.0.4121 + 2.1.0 + 0.22 + write @@ -187,6 +191,22 @@ true + + com.hubspot.maven.plugins + prettier-maven-plugin + ${prettier-maven-plugin.version} + + ${prettier-java.version} + + + + validate + + ${plugin.prettier.goal} + + + + @@ -266,6 +286,36 @@ + + sonar + + false + + + + + org.sonarsource.scanner.maven + sonar-maven-plugin + ${sonar-maven-plugin.version} + + + com.hubspot.maven.plugins + prettier-maven-plugin + ${prettier-maven-plugin.version} + + true + + + + + + + prettierCheck + + + check + +