diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62a8a72..6aba6ab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -118,7 +118,7 @@ jobs: echo "Next version: ${{ needs.build.outputs.next-version }}" - name: Analyze code 🔎️ - run: ./gradlew test jacocoTestReport sonarqube --info -Dsonar.projectVersion=${{ needs.build.outputs.next-version }}-SNAPSHOT + run: ./gradlew test jacocoTestReport sonar --info -Dsonar.projectVersion=${{ needs.build.outputs.next-version }}-SNAPSHOT env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index b5e8d8c..b757b65 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -42,7 +42,7 @@ jobs: uses: gradle/wrapper-validation-action@v1 - name: Build and test 🏗 - run: ./gradlew test jacocoTestReport sonarqube + run: ./gradlew test jacocoTestReport sonar env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/build.gradle b/build.gradle index cc1ae45..7aaf769 100644 --- a/build.gradle +++ b/build.gradle @@ -57,7 +57,6 @@ jacoco { jacocoTestReport { reports { xml.required = true - xml.outputLocation = file("${buildDir}/reports/jacoco/report.xml") } } @@ -110,7 +109,7 @@ signing { sign publishing.publications.mavenJava } -sonarqube { +sonar { properties { property "sonar.projectKey", "w3stling_rssreader" property "sonar.organization", "w3stling"