Hi Swapnil,
You can also configure the maven-enforcer-plugin to require java 8. Some
IOs already do that. Take a look at:
sdks/java/io/hadoop/jdk1.8-tests/pom.xml
Especially this part:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<enforceBytecodeVersion>
<maxJdkVersion>1.8</maxJdkVersion>
<excludes>
<!-- Supplied by the user JDK and compiled with
matching
version. Is not shaded, so safe to ignore. -->
<exclude>jdk.tools:jdk.tools</exclude>
</excludes>
</enforceBytecodeVersion>
<requireJavaVersion>
<version>[1.8,)</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>1.0-beta-6</version>
</dependency>
</dependencies>
</plugin>
Best
Etienne
Le 15/07/2017 à 02:53, Manu Zhang a écrit :
Hi Swapnil,
Try adding you module under java8 profile like
<profile>
<id>java8</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<modules>
<module>beam-sdks-java-io-geode</module>
</modules>
</profile>
Thanks,
Manu
On Sat, Jul 15, 2017 at 6:42 AM Ted Yu <yuzhih...@gmail.com> wrote:
Recently on Spark and Flink mailing lists there have been discussion on
dropping support for Java 7.
For master branch, we should consider moving to Java 8 for compilation.
On Fri, Jul 14, 2017 at 2:41 PM, Swapnil Bawaskar <sbawas...@pivotal.io>
wrote:
Hi,
I am trying to write a write an I/O transform for Apache Geode, which is
compiled with java-8. When I try to compile what I have so far, I get the
following error:
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce) @
beam-sdks-java-io-geode ---
[INFO] Restricted to JDK 1.7 yet
org.apache.geode:geode-core:jar:1.1.1:compile contains
org/apache/geode/admin/AdminConfig$Entry.class targeted to JDK 1.8
[INFO] Restricted to JDK 1.7 yet
org.apache.geode:geode-json:jar:1.1.1:compile contains org/json/CDL.class
targeted to JDK 1.8
[INFO] Restricted to JDK 1.7 yet
org.apache.geode:geode-common:jar:1.1.1:compile contains
org/apache/geode/annotations/Experimental.class targeted to JDK 1.8
[WARNING] Rule 0:
org.apache.maven.plugins.enforcer.EnforceBytecodeVersion
failed with message:
Found Banned Dependency: org.apache.geode:geode-core:jar:1.1.1
Are there any plans to move to java-8 for compiling?
Thanks!
Swapnil.