Skip to content

Commit

Permalink
Merge pull request #834 from eclipse/sonar
Browse files Browse the repository at this point in the history
Sonar use absolute paths to java libraries
  • Loading branch information
amvanbaren authored Nov 16, 2023
2 parents 45493ff + 7c114dc commit 7d21a7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,18 @@ jobs:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Print current working directory #TODO remove after debugging
run: cd ~/.gradle/caches && pwd
- name: Make server libraries directory
run: mkdir server/libraries
- name: Copy server libraries #TODO remove after debugging
run: find ~/.gradle/caches -type f -name '*.jar' -exec cp {} server/libraries \;
- name: List Files #TODO remove after debugging
run: cd ~ && ls -al
run: ls -al server/libraries
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build Server
run: server/gradlew --no-daemon -p server build
run: server/gradlew --no-daemon -p server compileJava compileScala compileTestJava compileTestScala
- name: SonarCloud Scan on PR
if: github.event.workflow_run.event == 'pull_request'
uses: sonarsource/sonarcloud-github-action@master
Expand Down
4 changes: 2 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ sonar.organization=open-vsx
sonar.sources=cli,webui,server/scripts,server/Dockerfile,server/src/dev,server/src/gatling,server/src/main/java,server/src/main/resources,.gitpod.dockerfile,.gitpod.yml
sonar.tests=server/src/test
sonar.java.binaries=server/build/classes/java/main
sonar.java.libraries=.gradle/caches
sonar.java.libraries=server/libraries/*.jar
sonar.java.test.binaries=server/build/classes/java/test
sonar.java.test.libraries=.gradle/caches
sonar.java.test.libraries=server/libraries/*.jar

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=openvsx
Expand Down

0 comments on commit 7d21a7b

Please sign in to comment.