From a6bf08b95e648e82564eadcc2dfe74db3288575c 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 --- .../test-plugin-installation/action.yml | 2 +- pom.xml | 194 ++++++++++++------ src/test/resources/htl/Empty.html | 21 ++ 3 files changed, 149 insertions(+), 68 deletions(-) diff --git a/.github/actions/test-plugin-installation/action.yml b/.github/actions/test-plugin-installation/action.yml index 29188d69..b760c19b 100644 --- a/.github/actions/test-plugin-installation/action.yml +++ b/.github/actions/test-plugin-installation/action.yml @@ -28,7 +28,7 @@ inputs: aem-rules-binary: description: "Name of the JAR file to copy from Maven's 'target' directory into the plugins directory" required: true - default: 'sonar-aemrules-plugin-1.8-SNAPSHOT.jar' + default: 'sonar-aemrules-plugin-1.7-SNAPSHOT.jar' docker-hub-login: description: 'Docker Hub username for which an access token has been generated' required: true diff --git a/pom.xml b/pom.xml index 6514aa12..1f6a76f8 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 @@ -110,6 +110,7 @@ 8.5.0.37199 UTF-8 10.11.0.2468 + 10.6.0.92116 10.7.0.96327 17 src/main/java,src/main/js @@ -131,217 +132,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 + 8.4.0.37032 - 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 +358,6 @@ ${project.description} aemrules com.vml.aemrules.AemRulesSonarPlugin - 9.9 https://github.com/wttech/AEM-Rules-for-SonarQube/issues @@ -372,7 +372,7 @@ maven-compiler-plugin 3.13.0 - 11 + 17 @@ -434,6 +434,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 @@ +