diff --git a/.github/workflows/analyse.yml b/.github/workflows/analyse.yml
new file mode 100644
index 00000000..cc4fc68c
--- /dev/null
+++ b/.github/workflows/analyse.yml
@@ -0,0 +1,38 @@
+name: Build
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Setup Java
+ uses: actions/setup-java@v3
+ with:
+ distribution: 'zulu'
+ java-version: 11
+
+ - name: Cache local Maven repository
+ uses: actions/cache@v3
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+
+ - name: Cache SonarCloud packages
+ uses: actions/cache@v3
+ with:
+ path: ~/.sonar/cache
+ key: ${{ runner.os }}-sonar
+ restore-keys: ${{ runner.os }}-sonar
+
+ - name: Build and analyze
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+ run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
diff --git a/all/pom.xml b/all/pom.xml
index e9a78e0e..45ddcaa7 100644
--- a/all/pom.xml
+++ b/all/pom.xml
@@ -32,7 +32,7 @@
filevault-package-maven-plugin
true
- ${package.group}
+ ${project.artifactId}
container
all
diff --git a/pom.xml b/pom.xml
index fdc2de63..0139ca15 100644
--- a/pom.xml
+++ b/pom.xml
@@ -95,7 +95,12 @@
6.5.10
4.0.9
- aem-groovy-console
+
+ orbinson
+ ${sonar.organization}_${project.artifactId}
+ https://sonarcloud.io
+
+
admin
diff --git a/ui.apps.aem/pom.xml b/ui.apps.aem/pom.xml
index 74e2b56c..79c92752 100644
--- a/ui.apps.aem/pom.xml
+++ b/ui.apps.aem/pom.xml
@@ -20,7 +20,7 @@
filevault-package-maven-plugin
true
- ${package.group}
+ ${project.artifactId}
aem-groovy-console-ui.apps.aem
application
merge
diff --git a/ui.apps/pom.xml b/ui.apps/pom.xml
index 91de50b2..f1120bfb 100644
--- a/ui.apps/pom.xml
+++ b/ui.apps/pom.xml
@@ -20,7 +20,7 @@
filevault-package-maven-plugin
true
- ${package.group}
+ ${project.artifactId}
aem-groovy-console-ui.apps
application
merge
diff --git a/ui.content/pom.xml b/ui.content/pom.xml
index 8ff5ab26..6ddd8c69 100644
--- a/ui.content/pom.xml
+++ b/ui.content/pom.xml
@@ -20,7 +20,7 @@
filevault-package-maven-plugin
true
- ${package.group}
+ ${project.artifactId}
aem-groovy-console-ui.content
content
merge