This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-parent.git
The following commit(s) were added to refs/heads/master by this push: new 32e0ba7 Use Java compiler release flag when compiling with Java >= 9. 32e0ba7 is described below commit 32e0ba7aee7ffaf79e706353481303844d9c76fe Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Apr 21 10:07:01 2023 -0400 Use Java compiler release flag when compiling with Java >= 9. --- pom.xml | 23 +++++++++++++++++++++++ src/changes/changes.xml | 5 +++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d374ed9..8e19909 100644 --- a/pom.xml +++ b/pom.xml @@ -113,6 +113,9 @@ <maven.compiler.source>1.3</maven.compiler.source> <maven.compiler.target>1.3</maven.compiler.target> + <!-- Java >= 9 --> + <maven.compiler.release>8</maven.compiler.release> + <!-- compiler and surefire plugin settings for "java" profiles --> <commons.compiler.fork>false</commons.compiler.fork> <commons.compiler.compilerVersion /> @@ -1917,6 +1920,26 @@ </properties> </profile> + <profile> + <id>jdk9-compiler</id> + <activation> + <jdk>[9</jdk> + </activation> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <release>${maven.compiler.release}</release> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> + </profile> + <!-- allow simple creation of the site without any optional reports --> <profile> <id>site-basic</id> diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 4caa000..af78d52 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -62,8 +62,9 @@ The <action> type attribute can be add,update,fix,remove. <body> <release version="57" date="2023-MM-DD" description="Version 57: Maintenance and update dependencies"> <!-- FIX --> - <action type="update" dev="ggregory" due-to="Hervé Boutemy">Fix cyclonedx-maven-plugin configuration for multi-module projects.</action> - <action type="update" dev="ggregory" due-to="Hervé Boutemy">Drop non-reproducible Implementation-Build in jar #242.</action> + <action type="fix" dev="ggregory" due-to="Hervé Boutemy">Fix cyclonedx-maven-plugin configuration for multi-module projects.</action> + <action type="fix" dev="ggregory" due-to="Hervé Boutemy">Drop non-reproducible Implementation-Build in jar #242.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Use Java compiler release flag when compiling with Java >= 9.].</action> <!-- UPDATE --> <action type="update" dev="ggregory" due-to="Dependabot">Bump github/codeql-action from 2.1.37 to 2.1.38 #201.</action> <action type="update" dev="ggregory" due-to="Dependabot">Bump cyclonedx-maven-plugin from 2.7.3 to 2.7.7 #195, #220, #253, #262.</action>