You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2020/12/29 11:33:13 UTC

[maven-ear-plugin] 03/03: Added profile for Java 11+ to guard about bytecode

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

slachiewicz pushed a commit to branch java11
in repository https://gitbox.apache.org/repos/asf/maven-ear-plugin.git

commit 261ec27e5e3ee610d5423bc79ef638d172f0c551
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Tue Dec 29 12:32:52 2020 +0100

    Added profile for Java 11+ to guard about bytecode
---
 pom.xml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/pom.xml b/pom.xml
index 5c2ed5d..fe7e82a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -339,5 +339,26 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>java11</id>
+      <activation>
+        <jdk>[11,)</jdk>
+      </activation>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-compiler-plugin</artifactId>
+              <version>3.8.1</version>
+              <configuration>
+                <showDeprecation>true</showDeprecation>
+                <release>${javaVersion}</release>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
   </profiles>
 </project>