diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 85db5cc..a7bf088 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,5 +1,4 @@
-# Build script
-name: Build
+name: SonarCloud
on:
push:
branches:
@@ -9,24 +8,25 @@ on:
types: [opened, synchronize, reopened]
jobs:
build:
- name: Build
+ name: Build and analyze
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v3
with:
java-version: 17
+ distribution: 'zulu' # Alternative distribution options are available.
- name: Cache SonarCloud packages
- uses: actions/cache@v1
+ uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
- uses: actions/cache@v1
+ uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
@@ -35,4 +35,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
\ No newline at end of file
+ run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=BentoBoxWorld_Upgrades
diff --git a/pom.xml b/pom.xml
index ee2c078..1adc6b5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -48,7 +48,7 @@
2.0.9
1.16.5-R0.1-SNAPSHOT
- 1.16.6-SNAPSHOT
+ 1.20.0-SNAPSHOT
2.9.0
1.19.1-SNAPSHOT
1.7
@@ -62,7 +62,6 @@
-LOCAL
- BentoBoxWorld_Upgrades
bentobox-world
https://sonarcloud.io