Skip to content

Commit

Permalink
configure java tests and libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
amvanbaren committed Nov 15, 2023
1 parent efe09aa commit 74e4c9d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ jobs:
run: docker build -t $WEBUI_TAG:$IMAGE_VERSION webui
- name: Run Server Tests
run: server/gradlew --no-daemon -p server check
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
Expand Down
9 changes: 0 additions & 9 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ buildscript {
}
}
plugins {
id "org.sonarqube" version "4.4.1.3373"
id 'nu.studer.jooq' version '8.2.1'
id 'de.undercouch.download' version '5.4.0'
id 'org.springframework.boot' version '3.1.0'
Expand Down Expand Up @@ -124,14 +123,6 @@ dependencies {
gatling "io.gatling:gatling-app:${versions.gatling}"
}

sonar {
properties {
property "sonar.projectKey", "open-vsx_openvsx"
property "sonar.organization", "open-vsx"
property "sonar.host.url", "https://sonarcloud.io"
}
}

jooq {
// use jOOQ version defined in Spring Boot
version = dependencyManagement.importedProperties['jooq.version']
Expand Down
7 changes: 4 additions & 3 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
sonar.projectKey=open-vsx_openvsx
sonar.organization=open-vsx
sonar.sources=.
sonar.tests=server/src/test
sonar.java.binaries=server/build/classes/java/main
sonar.java.libraries=~/.gradle/caches
sonar.java.test.binaries=server/build/classes/java/test
sonar.java.test.libraries=~/.gradle/caches

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

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

0 comments on commit 74e4c9d

Please sign in to comment.