From de825375c273a7f1892a45a116de80bc3e661fae Mon Sep 17 00:00:00 2001 From: Tomasz Strzelecki Date: Mon, 21 Oct 2024 17:03:42 +0200 Subject: [PATCH] Adjust main pom file --- .../test-plugin-installation/action.yml | 2 +- pom.xml | 196 ++++++++++++------ src/test/resources/htl/Empty.html | 21 ++ 3 files changed, 150 insertions(+), 69 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..eaae117a 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 @@ -129,6 +130,16 @@ + + commons-io + commons-io + 2.17.0 + + + org.apache.sling + org.apache.sling.scripting.sightly.compiler + ${htl.version} + org.sonarsource.api.plugin @@ -137,9 +148,16 @@ provided - org.sonarsource.html - sonar-html-plugin - ${sonar.html.version} + org.sonarsource.sonarqube + sonar-plugin-api-impl + ${sonar.apiImplVersion} + + + org.sonarsource.java + sonar-java-plugin + sonar-plugin + ${sonar.java.plugin} + provided com.google.guava @@ -175,10 +193,14 @@ - org.sonarsource.java - sonar-java-plugin - sonar-plugin - ${sonar.java.plugin} + org.apache.commons + commons-lang3 + 3.17.0 + + + org.sonarsource.html + sonar-html-plugin + ${sonar.html.version} com.google.guava @@ -186,26 +208,11 @@ - - org.apache.commons - commons-lang3 - 3.17.0 - - - commons-io - commons-io - 2.17.0 - org.jetbrains annotations 26.0.1 - - org.apache.sling - org.apache.sling.scripting.sightly.compiler - ${htl.version} - @@ -215,18 +222,6 @@ ${sonar.testingHarnessVersion} test - - junit - junit - 4.13.2 - test - - - org.mockito - mockito-core - 5.12.0 - test - org.assertj assertj-core @@ -234,27 +229,9 @@ test - org.easytesting - fest-assert - 1.4 - test - - - org.hamcrest - hamcrest-all - 1.3 - test - - - com.google.guava - guava - 32.0.0-jre - test - - - org.sonarsource.sonarqube - sonar-plugin-api-impl - 10.6.0.92116 + junit + junit + 4.13.2 test @@ -264,9 +241,9 @@ test - org.sonarsource.analyzer-commons - sonar-analyzer-commons - 2.14.0.3087 + org.easytesting + fest-assert + 1.4 test @@ -325,6 +302,12 @@ 4.0.2 test + + org.mockito + mockito-core + 5.12.0 + test + org.osgi org.osgi.core @@ -343,10 +326,36 @@ 1.5.0 test + + com.google.guava + guava + 32.0.0-jre + test + + + org.sonarsource.analyzer-commons + sonar-analyzer-commons + 2.14.0.3087 + test + + + org.hamcrest + hamcrest-all + 1.3 + test + + + org.apache.maven.plugins + maven-compiler-plugin + 3.13.0 + + 17 + + org.sonarsource.sonar-packaging-maven-plugin sonar-packaging-maven-plugin @@ -357,7 +366,6 @@ ${project.description} aemrules com.vml.aemrules.AemRulesSonarPlugin - 9.9 https://github.com/wttech/AEM-Rules-for-SonarQube/issues @@ -367,14 +375,6 @@ false - - org.apache.maven.plugins - maven-compiler-plugin - 3.13.0 - - 11 - - com.github.eirslett frontend-maven-plugin @@ -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 @@ +