GeezerVison is showing github.com — [MCHECKSTYLE-445] Upgrade to Doxia 2.0.0 Milestone Stack · apache/maven-checkstyle-plugin@0e7bd00
File treeExpand file treeCollapse file tree Open diff view settings MCHECKSTYLE-222-resources MCHECKSTYLE-222-testResources MCHECKSTYLE-412/src/main/java/org MCHECKSTYLE-99-custom-xref-test-location
main/java/org/apache/maven/plugins/checkstyle java/org/apache/maven/plugins/checkstyle
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: pom.xml +6-6Lines changed: 6 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -78,10 +78,10 @@ under the License. | 78 | 78 | <resolverVersion>1.4.1</resolverVersion> | 79 | 79 | <checkstyleVersion>9.3</checkstyleVersion> | 80 | 80 | <slf4jVersion>1.7.36</slf4jVersion> | 81 | | - <doxiaVersion>1.11.1</doxiaVersion> | 82 | | - <doxiaSitetoolsVersion>1.11.1</doxiaSitetoolsVersion> | 83 | | - <sitePluginVersion>3.12.1</sitePluginVersion> | 84 | | - <jxrPluginVersion>3.3.0</jxrPluginVersion> | | 81 | + <doxiaVersion>2.0.0-M12</doxiaVersion> | | 82 | + <doxiaSitetoolsVersion>2.0.0-M19</doxiaSitetoolsVersion> | | 83 | + <sitePluginVersion>3.20.0</sitePluginVersion> | | 84 | + <jxrPluginVersion>3.4.0</jxrPluginVersion> | 85 | 85 | <project.build.outputTimestamp>2024-06-02T14:45:45Z</project.build.outputTimestamp> | 86 | 86 | </properties> | 87 | 87 |
| @@ -132,12 +132,12 @@ under the License. | 132 | 132 | <dependency> | 133 | 133 | <groupId>org.apache.maven.reporting</groupId> | 134 | 134 | <artifactId>maven-reporting-api</artifactId> | 135 | | - <version>3.1.1</version> | | 135 | + <version>4.0.0-M12</version> | 136 | 136 | </dependency> | 137 | 137 | <dependency> | 138 | 138 | <groupId>org.apache.maven.reporting</groupId> | 139 | 139 | <artifactId>maven-reporting-impl</artifactId> | 140 | | - <version>3.2.0</version> | | 140 | + <version>4.0.0-M15</version> | 141 | 141 | </dependency> | 142 | 142 |
| 143 | 143 | <!-- doxia --> | |
Collapse file Copy file name to clipboardExpand all lines: src/it/MCHECKSTYLE-222-resources/verify.groovy +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 17 | 17 | * under the License. | 18 | 18 | */ | 19 | 19 |
| 20 | | -assert new File(basedir, 'target/site/checkstyle.html').exists(); | | 20 | +assert new File(basedir, 'target/reports/checkstyle.html').exists(); | 21 | 21 |
| 22 | 22 | return true; |
Collapse file Copy file name to clipboardExpand all lines: src/it/MCHECKSTYLE-222-testResources/verify.groovy +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 17 | 17 | * under the License. | 18 | 18 | */ | 19 | 19 |
| 20 | | -assert new File(basedir, 'target/site/checkstyle.html').exists(); | | 20 | +assert new File(basedir, 'target/reports/checkstyle.html').exists(); | 21 | 21 |
| 22 | 22 | return true; |
Collapse file Copy file name to clipboardExpand all lines: src/it/MCHECKSTYLE-338/verify.groovy +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -25,7 +25,7 @@ assert buildLog.text.contains( 'EmptyLogging: EmptyLoggingCheck on file TestFals | 25 | 25 | assert !buildLog.text.contains( 'EmptyLogging: EmptyLoggingCheck on file TestTrue.java' ) | 26 | 26 |
| 27 | 27 | // verify that the "checkstyle" goal does the same | 28 | | -site = new File( basedir, 'omitignoredmodules-false/target/site/checkstyle.html' ) | | 28 | +site = new File( basedir, 'omitignoredmodules-false/target/reports/checkstyle.html' ) | 29 | 29 | assert site.text.contains( 'EmptyLoggingCheck on file TestFalse.java' ) | 30 | | -site = new File( basedir, 'omitignoredmodules-true/target/site/checkstyle.html' ) | | 30 | +site = new File( basedir, 'omitignoredmodules-true/target/reports/checkstyle.html' ) | 31 | 31 | assert !site.text.contains( 'EmptyLoggingCheck on file TestTrue.java' ) |
Collapse file Copy file name to clipboardExpand all lines: src/it/MCHECKSTYLE-412/src/main/java/org/MyClass.java -26Lines changed: 0 additions & 26 deletions Collapse file Copy file name to clipboardExpand all lines: src/it/MCHECKSTYLE-99-custom-xref-test-location/verify.groovy +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 18 | 18 | * under the License. | 19 | 19 | */ | 20 | 20 |
| 21 | | -site = new File( basedir, 'target/site/checkstyle.html' ) | 22 | | -assert site.exists(); | 23 | | -assert site.text.contains( '<a href="./xref/com/example/App.html#L26">' ) | 24 | | -assert site.text.contains( '<a href="./custom-xref-test-location/com/example/AppTest.html#L32">' ) | | 21 | +report = new File( basedir, 'target/reports/checkstyle.html' ) | | 22 | +assert report.exists(); | | 23 | +assert report.text.contains( '<a href="./xref/com/example/App.html#L26">' ) | | 24 | +assert report.text.contains( '<a href="./custom-xref-test-location/com/example/AppTest.html#L32">' ) | 25 | 25 |
| 26 | 26 | return true; |
Collapse file Copy file name to clipboardExpand all lines: src/it/MCHECKSTYLE-99/verify.groovy +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 18 | 18 | * under the License. | 19 | 19 | */ | 20 | 20 |
| 21 | | -site = new File( basedir, 'target/site/checkstyle.html' ) | 22 | | -assert site.exists(); | 23 | | -assert site.text.contains( '<a href="./xref/com/example/App.html#L26">' ) | 24 | | -assert site.text.contains( '<a href="./xref-test/com/example/AppTest.html#L32">' ) | | 21 | +report = new File( basedir, 'target/reports/checkstyle.html' ) | | 22 | +assert report.exists(); | | 23 | +assert report.text.contains( '<a href="./xref/com/example/App.html#L26">' ) | | 24 | +assert report.text.contains( '<a href="./xref-test/com/example/AppTest.html#L32">' ) | 25 | 25 |
| 26 | 26 | return true; |
Collapse file Copy file name to clipboardExpand all lines: src/it/checkstyle-goal/verify.groovy +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ assert new File( basedir, 'target/checkstyle-checker.xml' ).exists(); | 24 | 24 | assert new File( basedir, 'target/checkstyle-header.txt' ).exists(); | 25 | 25 | assert new File( basedir, 'target/checkstyle-result.xml' ).exists(); | 26 | 26 |
| 27 | | -def html = new File( basedir, 'target/site/checkstyle.html' ).text; | | 27 | +def html = new File( basedir, 'target/reports/checkstyle.html' ).text; | 28 | 28 | assert html.contains( '<meta charset="UTF-8" />' ); | 29 | 29 |
| 30 | 30 | return true; |
Collapse file Copy file name to clipboardExpand all lines: src/main/java/org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java +9Lines changed: 9 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 50 | 50 | import org.apache.maven.plugins.checkstyle.exec.CheckstyleExecutorException; | 51 | 51 | import org.apache.maven.plugins.checkstyle.exec.CheckstyleExecutorRequest; | 52 | 52 | import org.apache.maven.plugins.checkstyle.exec.CheckstyleResults; | | 53 | +import org.apache.maven.project.MavenProject; | 53 | 54 | import org.apache.maven.reporting.AbstractMavenReport; | 54 | 55 | import org.apache.maven.reporting.MavenReportException; | 55 | 56 | import org.codehaus.plexus.configuration.PlexusConfiguration; | @@ -474,6 +475,14 @@ protected String getI18nString(Locale locale, String key) { | 474 | 475 | return i18n.getString("checkstyle-report", locale, "report.checkstyle." + key); | 475 | 476 | } | 476 | 477 |
| | 478 | + protected MavenProject getProject() { | | 479 | + return project; | | 480 | + } | | 481 | + | | 482 | + protected List<MavenProject> getReactorProjects() { | | 483 | + return reactorProjects; | | 484 | + } | | 485 | + | 477 | 486 | /** {@inheritDoc} */ | 478 | 487 | public void executeReport(Locale locale) throws MavenReportException { | 479 | 488 | checkDeprecatedParameterUsage(sourceDirectory, "sourceDirectory", "sourceDirectories"); | |
Collapse file Copy file name to clipboardExpand all lines: src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleAggregateReport.java -17Lines changed: 0 additions & 17 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 18 | 18 | */ | 19 | 19 | package org.apache.maven.plugins.checkstyle; | 20 | 20 |
| 21 | | -import java.util.List; | 22 | | - | 23 | 21 | import org.apache.maven.plugins.annotations.Mojo; | 24 | | -import org.apache.maven.plugins.annotations.Parameter; | 25 | 22 | import org.apache.maven.plugins.annotations.ResolutionScope; | 26 | 23 | import org.apache.maven.plugins.checkstyle.exec.CheckstyleExecutorRequest; | 27 | | -import org.apache.maven.project.MavenProject; | 28 | 24 | import org.apache.maven.reporting.MavenReportException; | 29 | 25 |
| 30 | 26 | /** | | 40 | 36 | requiresDependencyResolution = ResolutionScope.COMPILE, | 41 | 37 | threadSafe = true) | 42 | 38 | public class CheckstyleAggregateReport extends AbstractCheckstyleReport { | 43 | | - /** | 44 | | - * The projects in the reactor for aggregation report. | 45 | | - * | 46 | | - * @since 2.8 | 47 | | - */ | 48 | | - @Parameter(property = "reactorProjects", readonly = true) | 49 | | - private List<MavenProject> reactorProjects; | 50 | | - | 51 | | - /** {@inheritDoc} */ | 52 | | - protected MavenProject getProject() { | 53 | | - return project; | 54 | | - } | 55 | | - | 56 | 39 | /** | 57 | 40 | * {@inheritDoc} | 58 | 41 | */ | |
|