From 8c543128ea4807266ac650c9ee44cac3c35db2a0 Mon Sep 17 00:00:00 2001 From: Tomasz Strzelecki Date: Mon, 21 Oct 2024 17:36:18 +0200 Subject: [PATCH] Adjust main pom file --- .github/workflows/build.yml | 2 +- pom.xml | 195 ++++++++++++++++++++---------- src/test/resources/htl/Empty.html | 21 ++++ 3 files changed, 150 insertions(+), 68 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 736ca4e8..233bd917 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,7 @@ jobs: strategy: matrix: - java-version: [ 11 ] + java-version: [ 11, 17 ] steps: - uses: actions/checkout@v4 diff --git a/pom.xml b/pom.xml index 2c32e2b4..3d490037 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.vml.aemrules sonar-aemrules-plugin sonar-plugin - 1.8-SNAPSHOT + 1.7-SNAPSHOT AEM Rules for SonarQube SonarQube plugin with set of rules detecting possible bugs and bad smells specific for AEM @@ -107,10 +107,12 @@ 1.1.2-1.4.0 3.3.0.2534 - 8.5.0.37199 + 7.30.1.34514 UTF-8 10.11.0.2468 + 10.3.0.82913 10.7.0.96327 + 7.30.1.34514 11 src/main/java,src/main/js 4rVf3NGV0jyQ3EGrc8L86oEDoHWm6MgDD @@ -131,217 +133,217 @@ - org.sonarsource.api.plugin sonar-plugin-api - ${sonar.apiVersion} + org.sonarsource.api.plugin provided + ${sonar.apiVersion} - org.sonarsource.html sonar-html-plugin - ${sonar.html.version} - com.google.guava guava + com.google.guava + org.sonarsource.html + ${sonar.html.version} - org.sonarsource.sslr-squid-bridge sslr-squid-bridge - 2.6.1 - org.codehaus.sonar.sslr sslr-core + org.codehaus.sonar.sslr - org.codehaus.sonar sonar-plugin-api + org.codehaus.sonar - org.codehaus.sonar.sslr sslr-xpath + org.codehaus.sonar.sslr - org.slf4j jcl-over-slf4j + org.slf4j - org.slf4j slf4j-api + org.slf4j + org.sonarsource.sslr-squid-bridge + 2.6.1 - org.sonarsource.java sonar-java-plugin - sonar-plugin - ${sonar.java.plugin} - com.google.guava guava + com.google.guava + org.sonarsource.java + sonar-plugin + ${sonar.java.plugin} - org.apache.commons commons-lang3 + org.apache.commons 3.17.0 - commons-io commons-io + commons-io 2.17.0 - org.jetbrains annotations + org.jetbrains 26.0.1 - org.apache.sling org.apache.sling.scripting.sightly.compiler + org.apache.sling ${htl.version} - org.sonarsource.sonarqube sonar-testing-harness - ${sonar.testingHarnessVersion} + org.sonarsource.sonarqube test + ${sonar.testingHarnessVersion} - junit junit - 4.13.2 + junit test + 4.13.2 - org.mockito mockito-core - 5.12.0 + org.mockito test + 5.12.0 - org.assertj assertj-core - 3.26.0 + org.assertj test + 3.26.0 - org.easytesting fest-assert - 1.4 + org.easytesting test + 1.4 - org.hamcrest hamcrest-all - 1.3 + org.hamcrest test + 1.3 - com.google.guava guava - 32.0.0-jre + com.google.guava test + 32.0.0-jre - org.sonarsource.sonarqube sonar-plugin-api-impl - 10.6.0.92116 + org.sonarsource.sonarqube test + ${sonar.apiImplVersion} - org.sonarsource.java java-checks-testkit - 8.4.0.37032 + org.sonarsource.java test + ${sonar.javaCheksTestkitVersion} - org.sonarsource.analyzer-commons sonar-analyzer-commons - 2.14.0.3087 + org.sonarsource.analyzer-commons test + 2.14.0.3087 - ch.qos.logback logback-classic - 1.2.13 + ch.qos.logback test + 1.2.13 - com.adobe.aem aem-api - 6.0.0.1 + com.adobe.aem test + 6.0.0.1 - javax.jcr jcr - 2.0 + javax.jcr test + 2.0 - javax.servlet servlet-api - 2.5 + javax.servlet test + 2.5 - org.apache.felix org.apache.felix.scr.annotations - 1.12.0 + org.apache.felix test + 1.12.0 - org.apache.sling org.apache.sling.servlets.resolver - 2.3.2 + org.apache.sling test + 2.3.2 - org.apache.sling org.apache.sling.api - 2.4.0 + org.apache.sling test + 2.4.0 - org.apache.sling org.apache.sling.models.api - 1.3.8 + org.apache.sling test + 1.3.8 - org.apache.sling org.apache.sling.query - 4.0.2 + org.apache.sling test + 4.0.2 - org.osgi org.osgi.core - 6.0.0 + org.osgi test + 6.0.0 - org.osgi org.osgi.compendium - 5.0.0 + org.osgi test + 5.0.0 - org.osgi org.osgi.service.component.annotations - 1.5.0 + org.osgi test + 1.5.0 @@ -357,7 +359,6 @@ ${project.description} aemrules com.vml.aemrules.AemRulesSonarPlugin - 9.9 https://github.com/wttech/AEM-Rules-for-SonarQube/issues @@ -434,6 +435,66 @@ ${coveralls.repo.token} + + com.mycila + license-maven-plugin + 3.0 + + false +
${basedir}/assets/license-template.txt
+ +
${basedir}/assets/license-header-definition.xml
+
+ + **/README + src/main/resources/** + **/LICENSE.txt + **.xml + assets/** + src/test/resources/htl/HtlCommentsCheck.html + src/main/js/** + conf/** + scripts/** + .cirrus.yml + **.yml + +
+ + + validate + + format + + + +
+ + + org.apache.maven.plugins + maven-dependency-plugin + 3.0.0 + + + copy-dependencies + test-compile + + copy-dependencies + + + provided + ${project.build.directory}/test-jars + false + false + true + + + + org.apache.maven.plugins maven-resources-plugin diff --git a/src/test/resources/htl/Empty.html b/src/test/resources/htl/Empty.html index e69de29b..fa0d417f 100644 --- a/src/test/resources/htl/Empty.html +++ b/src/test/resources/htl/Empty.html @@ -0,0 +1,21 @@ +