sonar qube
Some checks failed
Build / build (push) Failing after 2m27s

This commit is contained in:
unurled 2024-03-15 15:06:46 +01:00
parent cdf76fb151
commit 6dd20174ad
Signed by: unurled
GPG key ID: FDBC9CBE1F82423F
3 changed files with 10 additions and 7 deletions

View file

@ -11,15 +11,13 @@ jobs:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
cache: 'gradle' cache: 'gradle'
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
with:
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
- name: build - name: build
with:
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
run: | run: |
chmod +x gradlew chmod +x gradlew
./gradlew build ./gradlew build
./gradlew sonar
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: build name: build

View file

@ -2,6 +2,7 @@ plugins {
`java-library` `java-library`
id("io.papermc.paperweight.userdev") version "1.5.11" id("io.papermc.paperweight.userdev") version "1.5.11"
id("com.github.johnrengelman.shadow") version "8.1.1" id("com.github.johnrengelman.shadow") version "8.1.1"
id("org.sonarqube") version "4.4.1.3373"
} }
group = "me.unurled.sacredrealms" group = "me.unurled.sacredrealms"
@ -60,4 +61,10 @@ tasks {
relocate("redis", "libs.redis") relocate("redis", "libs.redis")
// minimize() // minimize()
} }
sonar {
properties {
property("sonar.projectKey", "Sacred-Realms")
property("sonar.host.url", "https://qube.unurled.me")
}
}
} }

View file

@ -1,2 +0,0 @@
sonar.projectKey=Sacred-Realms
sonar.sources=.