diff --git a/.github/workflows/maven-central-publish.yml b/.github/workflows/maven-central-publish.yml index 1ccdd85..a9008fd 100644 --- a/.github/workflows/maven-central-publish.yml +++ b/.github/workflows/maven-central-publish.yml @@ -10,7 +10,7 @@ jobs: - name: Set up Maven Central Repository uses: actions/setup-java@v4 with: - java-version: '21' + java-version: '17' distribution: 'temurin' server-id: central server-username: MAVEN_USERNAME diff --git a/.github/workflows/sonarcloud-checks.yml b/.github/workflows/sonarcloud-checks.yml index 22689fd..f91b4ec 100644 --- a/.github/workflows/sonarcloud-checks.yml +++ b/.github/workflows/sonarcloud-checks.yml @@ -32,6 +32,8 @@ jobs: restore-keys: ${{ runner.os }}-m2 - name: Build and analyze env: + USER_NAME: ${{ secrets.PPE_USER_NAME }} + ACCESS_TOKEN: ${{ secrets.PPE_ACCESS_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=PhonePe_DLM diff --git a/pom.xml b/pom.xml index 02f2830..568a14e 100644 --- a/pom.xml +++ b/pom.xml @@ -84,6 +84,7 @@ 0.5.0 2.5.3 1.6 + 3.9.1.2184 4.3.1 @@ -97,14 +98,20 @@ 17 17 + PhonePe_DLM phonepe https://sonarcloud.io - + src/main + src/test + jacoco + reuseReports + java + true - **/src/test/com/phonepe/dlm/**/*.java, - **/src/test/com/phonepe/dlm/*.java + **/src/test/java/com/phonepe/dlm/**/*.java, + **/src/test/java/com/phonepe/dlm/*.java @@ -250,9 +257,6 @@ org.apache.maven.plugins maven-surefire-plugin ${maven.surefire.plugin.version} - - --add-opens java.base/java.nio=ALL-UNNAMED - org.sonatype.central @@ -275,25 +279,47 @@ deploy + + org.sonarsource.scanner.maven + sonar-maven-plugin + ${maven.sonar.plugin.version} + + + sonar-run + verify + + sonar + + + + org.jacoco jacoco-maven-plugin ${jacoco.maven.plugin.version} - prepare-agent + initialize prepare-agent + + true + report - test + prepare-package report + + + **/src/test/** + +