This is an automated email from the ASF dual-hosted git repository. rec pushed a commit to branch refactoring/UIMA-6354-Limit-permitted-JDK-to-minimal-JDK-for-release-builds in repository https://gitbox.apache.org/repos/asf/uima-uimafit.git
commit 37d5823c45368e677d77ca9676d8142fedeb1afd Author: Richard Eckart de Castilho <[email protected]> AuthorDate: Wed Feb 16 15:18:01 2022 +0100 [UIMA-6354] Limit permitted JDK to minimal JDK for release builds - Add the enforcer config to the release profile --- uimafit-parent/pom.xml | 45 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/uimafit-parent/pom.xml b/uimafit-parent/pom.xml index b8c326d..5ac0230 100644 --- a/uimafit-parent/pom.xml +++ b/uimafit-parent/pom.xml @@ -31,6 +31,12 @@ <name>Apache UIMA uimaFIT - Parent</name> <url>${uimaWebsiteUrl}</url> <inceptionYear>2012</inceptionYear> + <scm> + <tag>HEAD</tag> + <connection>scm:git:git://github.com/apache/uima-uimafit</connection> + <developerConnection>scm:git:[email protected]:apache/uima-uimafit.git</developerConnection> + <url>https://github.com/apache/uima-uimafit</url> + </scm> <properties> <spring.version>4.3.30.RELEASE</spring.version> <uima.version>3.2.0</uima.version> @@ -381,11 +387,38 @@ </plugins> </pluginManagement> </build> + + <profiles> + <profile> + <id>apache-release</id> - <scm> - <tag>HEAD</tag> - <connection>scm:git:git://github.com/apache/uima-uimafit</connection> - <developerConnection>scm:git:[email protected]:apache/uima-uimafit.git</developerConnection> - <url>https://github.com/apache/uima-uimafit</url> - </scm> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <executions> + <execution> + <id>enforce-java</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <requireJavaVersion> + <!-- + - Ensure that releases are made with a Java 1.8 since that's our minimum + - version atm. + --> + <version>[1.8,1.9)</version> + </requireJavaVersion> + </rules> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> \ No newline at end of file
