beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhalp...@apache.org
Subject [1/3] beam git commit: Examples: allow java8 bytecode since the examples are java8
Date Fri, 05 May 2017 21:10:08 GMT
Repository: beam
Updated Branches:
  refs/heads/master da164a3fb -> 50262be1f


Examples: allow java8 bytecode since the examples are java8


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/e6ee2991
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/e6ee2991
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/e6ee2991

Branch: refs/heads/master
Commit: e6ee29917813f12b0de086af5adaa8d6c05c31ba
Parents: 2e37923
Author: Dan Halperin <dhalperi@google.com>
Authored: Fri May 5 11:39:51 2017 -0700
Committer: Dan Halperin <dhalperi@google.com>
Committed: Fri May 5 14:09:55 2017 -0700

----------------------------------------------------------------------
 .../maven-archetypes/examples-java8/pom.xml     | 23 ++++++++++++++++++++
 1 file changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/e6ee2991/sdks/java/maven-archetypes/examples-java8/pom.xml
----------------------------------------------------------------------
diff --git a/sdks/java/maven-archetypes/examples-java8/pom.xml b/sdks/java/maven-archetypes/examples-java8/pom.xml
index 49b2d1b..79b4d46 100644
--- a/sdks/java/maven-archetypes/examples-java8/pom.xml
+++ b/sdks/java/maven-archetypes/examples-java8/pom.xml
@@ -91,6 +91,29 @@
           </execution>
         </executions>
       </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>enforce</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <enforceBytecodeVersion>
+                  <maxJdkVersion>1.8</maxJdkVersion>
+                </enforceBytecodeVersion>
+                <requireJavaVersion>
+                  <version>[1.8,)</version>
+                </requireJavaVersion>
+              </rules>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 


Mime
View raw message