Skip to content

Commit

Permalink
Disable Java sonar stage [AP-1376] (#1402)
Browse files Browse the repository at this point in the history
# Description

@swift-nav/devinfra

There are java version incompatibility issues which are currently
failing CI checks. The solution is not forthcoming so simply disable the
stage for the moment until a solution is found

To be re-enabled with AP-1377



# API compatibility

Does this change introduce a API compatibility risk?

No

## API compatibility plan

If the above is "Yes", please detail the compatibility (or migration)
plan:

N/A

# JIRA Reference

https://swift-nav.atlassian.net/browse/AP-1376
  • Loading branch information
woodfell authored Feb 2, 2024
1 parent 2af78f3 commit 9e8203e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ jobs:
- name: Run tests
run: make test-java

sonarqube:
name: SonarQube
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.1.1
- name: Run tests
run: make test-java

- name: Run sonarqube
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: (cd java && gradle sonarqube)
# sonarqube:
# name: SonarQube
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - uses: gradle/gradle-build-action@v2
# with:
# gradle-version: 7.1.1
# - name: Run tests
# run: make test-java
#
# - name: Run sonarqube
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# run: (cd java && gradle sonarqube)
20 changes: 10 additions & 10 deletions java/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'jacoco'
id "org.sonarqube" version "3.3"
// id "org.sonarqube" version "3.3"
// spotless pre v5 used to allow gradle 4 on ubuntu-latest
id "com.diffplug.gradle.spotless" version "4.5.1"
id 'maven-publish'
Expand Down Expand Up @@ -60,15 +60,15 @@ jacocoTestReport {
}
}

sonarqube {
properties {
property 'sonar.projectName', "libsbp-java"
property "sonar.projectKey", "swift-nav_libsbp"
property "sonar.organization", "swift-nav"
property 'sonar.coverage.jacoco.xmlReportPaths', 'build/reports/jacoco/test/jacocoTestReport.xml'
property "sonar.host.url", "https://sonarcloud.io"
}
}
// sonarqube {
// properties {
// property 'sonar.projectName', "libsbp-java"
// property "sonar.projectKey", "swift-nav_libsbp"
// property "sonar.organization", "swift-nav"
// property 'sonar.coverage.jacoco.xmlReportPaths', 'build/reports/jacoco/test/jacocoTestReport.xml'
// property "sonar.host.url", "https://sonarcloud.io"
// }
// }

spotless {
java {
Expand Down

0 comments on commit 9e8203e

Please sign in to comment.