diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 12bdefc..a44be74 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,4 +1,4 @@
-name: Build
+name: SonarCloud
on:
push:
branches:
@@ -8,7 +8,7 @@ on:
types: [opened, synchronize, reopened]
jobs:
build:
- name: Build
+ name: Build and analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -17,8 +17,8 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
- distribution: 'adopt'
- java-version: '17'
+ java-version: 17
+ distribution: 'zulu' # Alternative distribution options are available.
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
@@ -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_TwerkingForTrees
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index fc1d20c..97e3814 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,6 +56,8 @@
1.5.0
-LOCAL
+ bentobox-world
+ https://sonarcloud.io