You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2022/02/16 14:18:05 UTC

[uima-uimafit] branch refactoring/UIMA-6354-Limit-permitted-JDK-to-minimal-JDK-for-release-builds created (now 37d5823)

This is an automated email from the ASF dual-hosted git repository.

rec pushed a change 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.


      at 37d5823  [UIMA-6354] Limit permitted JDK to minimal JDK for release builds

This branch includes the following new commits:

     new 37d5823  [UIMA-6354] Limit permitted JDK to minimal JDK for release builds

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[uima-uimafit] 01/01: [UIMA-6354] Limit permitted JDK to minimal JDK for release builds

Posted by re...@apache.org.
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 <re...@apache.org>
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:git@github.com: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:git@github.com: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