parent
cdf76fb151
commit
6dd20174ad
3 changed files with 10 additions and 7 deletions
|
@ -11,15 +11,13 @@ jobs:
|
|||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
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
|
||||
with:
|
||||
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
||||
run: |
|
||||
chmod +x gradlew
|
||||
./gradlew build
|
||||
./gradlew sonar
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build
|
||||
|
|
|
@ -2,6 +2,7 @@ plugins {
|
|||
`java-library`
|
||||
id("io.papermc.paperweight.userdev") version "1.5.11"
|
||||
id("com.github.johnrengelman.shadow") version "8.1.1"
|
||||
id("org.sonarqube") version "4.4.1.3373"
|
||||
}
|
||||
|
||||
group = "me.unurled.sacredrealms"
|
||||
|
@ -60,4 +61,10 @@ tasks {
|
|||
relocate("redis", "libs.redis")
|
||||
// minimize()
|
||||
}
|
||||
sonar {
|
||||
properties {
|
||||
property("sonar.projectKey", "Sacred-Realms")
|
||||
property("sonar.host.url", "https://qube.unurled.me")
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
sonar.projectKey=Sacred-Realms
|
||||
sonar.sources=.
|
Loading…
Add table
Add a link
Reference in a new issue