Changelog

Added

  • Check for duplicate Java / Jakarta EE classes on the classpath. The Duplicate finder Maven plugin checks for duplicate classes in the following packages: javax.validation, javax.servlet, javax.json, javax.mail, javax.ws.rs, javax.activation, javax.inject, javax.annotation and javax.xml.bind. Projects can disable the check via the <skip>false</skip> configuration property.

  • Start to manage the plugin version for the rewrite-maven-plugin. [BUILD-1007]

  • Ability to set a different Java version for the test compiler by setting the javaVersionForTests property accordingly. [BUILD-1013]

  • Plugin dependency for the rewrite-maven-plugin to magnolia-rewrite-recipes. [BUILD-1014]

  • Surefire: use <systemPropertyVariables> instead of the deprecated <systemProperties> to configure default system properties to pass to Surefire. [BUILD-1075]

  • Jacoco code coverage integration with Maven Surefire and Failsafe plugins. [BUILD-1073]

    To enable code coverage using Jacoco, you can activate the enable-code-coverage profile. Once the profile is activated, the jacoco-maven-plugin will automatically run just before the test and integration-test phases. It configures the surefire and maven plugins with the appropriate -javaagent arguments.

    XML and HTML reports will be generated during the verify phase in the ${project.reporting.outputDirectory}/jacoco folder, which defaults to target/site/jacoco. The XML report is designed to be used by external tools like SonarQube, while the HTML report is useful for developers who want to execute tests locally on their workstation and view the coverage.

    To integrate the Jacoco agent with the surefire and failsafe plugins, additional arguments are required in the plugin’s argLine property. It is recommended that projects avoid overriding the plugin configuration and instead use the new surefire.jvmargs and failsafe.jvmargs properties to specify their extra arguments.

Removed

  • Stop managing the maven-pmd-plugin version, unused.

Changed

  • The license headers have been updated in order to support an opening line format such as used by OpenRewrite’s AddLicenseHeader recipe. [BUILD-1061]

  • Plugin updates (performed by Renovate)

    Update dependency org.openrewrite.maven:rewrite-maven-plugin to v4.46.0
    Update dependency org.apache.maven.plugins:maven-source-plugin to v3.3.0
    Update dependency org.pitest:pitest-maven to v1.13.2
    Update dependency org.apache.maven.plugins:maven-plugin-plugin to v3.9.0
    Update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.4.0
    Update dependency org.jacoco:jacoco-maven-plugin to v0.8.10
    Update dependency org.zeroturnaround:jrebel-maven-plugin to v1.1.11
    Update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.3
    Update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.2.2
    Update dependency io.fabric8:docker-maven-plugin to v0.42.1
    Update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.3.0
    Update dependency org.codehaus.mojo:animal-sniffer-maven-plugin to v1.23
    Update dependency org.apache.maven.plugins:maven-resources-plugin to v3.3.1
    Update dependency org.apache.maven.plugins:maven-install-plugin to v3.1.1
    Update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.1
    Update dependency org.owasp:dependency-check-maven to v8.2.1
    Update dependency org.apache.maven.plugins:maven-release-plugin to v3.0.0
    Update dependency com.github.siom79.japicmp:japicmp-maven-plugin to v0.17.2
    Update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.11.0
    Update dependency org.apache.maven.plugins:maven-assembly-plugin to v3.5.0
    Update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.5.0
    Update dependency org.apache.maven.skins:maven-fluido-skin to v1.11.2
    Update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.5.0

Upgrading

Upgrading should be straightforward. Core artifacts will start being updated with Magnolia 6.2.35 release.

  • No labels