parent
cdf76fb151
commit
6dd20174ad
3 changed files with 10 additions and 7 deletions
|
@ -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
|
||||||
|
|
|
@ -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")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -1,2 +0,0 @@
|
||||||
sonar.projectKey=Sacred-Realms
|
|
||||||
sonar.sources=.
|
|
Loading…
Add table
Add a link
Reference in a new issue