You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2019/03/06 22:28:10 UTC

[maven-resolver] branch MRESOLVER-67 created (now fff2730)

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

rfscholte pushed a change to branch MRESOLVER-67
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git.


      at fff2730  [MRESOLVER-67] Ensure release is done with Java 7 or 8

This branch includes the following new commits:

     new fff2730  [MRESOLVER-67] Ensure release is done with Java 7 or 8

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.



[maven-resolver] 01/01: [MRESOLVER-67] Ensure release is done with Java 7 or 8

Posted by rf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch MRESOLVER-67
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git

commit fff273068617c0e133fb62a70bc71e8968db199a
Author: rfscholte <rf...@apache.org>
AuthorDate: Wed Mar 6 23:28:02 2019 +0100

    [MRESOLVER-67] Ensure release is done with Java 7 or 8
---
 pom.xml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/pom.xml b/pom.xml
index e55b297..86b448c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -479,5 +479,33 @@
         </pluginManagement>
       </build>
     </profile>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-enforcer-plugin</artifactId>
+            <version>3.0.0-M2</version>
+            <executions>
+              <execution>
+                <id>enforce-java</id>
+                <goals>
+                  <goal>enforce</goal>
+                </goals>
+                <configuration>
+                  <rules>
+                    <requireJavaVersion>
+                      <version>(,9)</version>
+                      <message>Release with Java 7 or 8 due to changed signatures of java.nio.ByteBuffer (MRESOLVER-67)</message>
+                    </requireJavaVersion>
+                  </rules>    
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 </project>