Skip to content

Bump build-tools from 38 to 39 - #6762

Merged
UncleOwen merged 1 commit into
pmd:mainfrom
adangel:update-build-tools-39
Jun 10, 2026
Merged

UncleOwen merged 1 commit into
pmd:mainfrom
adangel:update-build-tools-39

Conversation

@adangel

@adangel adangel commented Jun 4, 2026

Copy link
Copy Markdown
Member

Describe the PR

  • Enable new rules (Enable more pmd rules build-tools#165)

  • Supports surefire 3.5.6 (Bump surefire.version from 3.5.5 to 3.5.6 build-tools#164):
    In build-tools, we implemented a surefire extension to properly report test results (especially from the kotest tests):

    pmd/pom.xml

    Lines 349 to 363 in 980ae5c

    <statelessTestsetInfoReporter implementation="net.sourceforge.pmd.buildtools.surefire.PMDStatelessTestSetInfoConsoleReporter">
    <showFailedTests>true</showFailedTests>
    <showSuccessfulTests>false</showSuccessfulTests>
    <showSkippedTests>true</showSkippedTests>
    <usePhrasedFileName>true</usePhrasedFileName>
    <usePhrasedClassNameInRunning>true</usePhrasedClassNameInRunning>
    <usePhrasedClassNameInTestCaseSummary>true</usePhrasedClassNameInTestCaseSummary>
    </statelessTestsetInfoReporter>
    <statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter">
    <usePhrasedFileName>true</usePhrasedFileName>
    <usePhrasedTestSuiteClassName>true</usePhrasedTestSuiteClassName>
    <usePhrasedTestCaseClassName>true</usePhrasedTestCaseClassName>
    <usePhrasedTestCaseMethodName>true</usePhrasedTestCaseMethodName>
    </statelessTestsetReporter>

    With the latest update of surefire from 3.5.5 to 3.5.6, some parts are broken, resulting currently in the following errors during test execution:

    'void org.apache.maven.plugin.surefire.report.WrappedReportEntry.<init>(org.apache.maven.surefire.api.report.ReportEntry, org.apache.maven.plugin.surefire.report.ReportEntryType, java.lang.Integer, org.apache.maven.plugin.surefire.report.Utf8RecodingDeferredFileOutputStream, org.apache.maven.plugin.surefire.report.Utf8RecodingDeferredFileOutputStream)'. See the dump file /home/andreas/PMD/source/pmd/pmd-cli/target/surefire-reports/2026-06-04T17-34-01_485-jvmRun1.dumpstream
    

    The new build tools is updated to fix those.

  • Avoid using deprecated rule JUnit5TestShouldBePackagePrivate to get rid of the following build warnings (Bump pmd.version from 7.24.0 to 7.25.0 build-tools#161):

    [WARNING] Warning at /home/andreas/PMD/source/pmd/pmd-cli/target/pmd/rulesets/001-pmd-test-dogfood-config.xml:11:5
      9|         <priority>1</priority>
     10|     </rule>
     11|     <rule ref="category/java/bestpractices.xml/JUnit5TestShouldBePackagePrivate">
             ^^^^^ Use Rule name category/java/bestpractices.xml/JUnitJupiterTestShouldBePackagePrivate instead of the deprecated Rule name category/java/bestpractices.xml/JUnit5TestShouldBePackagePrivate. PMD 8.0.0 will remove support for this deprecated Rule name usage.
    

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

@adangel adangel added this to the 7.26.0 milestone Jun 4, 2026
@adangel adangel added the dependencies Pull requests that update a dependency file label Jun 4, 2026
- Enable new rules
- Supports surefire 3.5.6
@UncleOwen
UncleOwen force-pushed the update-build-tools-39 branch from 4723168 to 1e6f02b Compare June 10, 2026 06:18
@pmd-actions-helper

Copy link
Copy Markdown
Contributor

Documentation Preview

No relevant source code has been changed, pmdtester skipped.

(comment created at 2026-06-10 06:33:46+00:00 for 1e6f02b)

@UncleOwen
UncleOwen merged commit 6ee4d92 into pmd:main Jun 10, 2026
12 checks passed
@adangel
adangel deleted the update-build-tools-39 branch June 11, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants