Hi all,

A workaround to use gwt-2.8.0 in Java 6 is using retrololamda
<https://github.com/orfjackal/retrolambda>. Here how I configured it (using
maven), by adding a profile (here the gist
<https://gist.github.com/gardellajuanpablo/727d3b53e4e5a92e4068b272aa8b4fed#file-gwt28-usingjava6-xml-L1>
):

<profile>
<id>production</id>
<activation>
<property>
<name>production</name>
</property>
</activation>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<properties>
<resources-environment-folder>${basedir}/src/env/production</
resources-environment-folder>
</properties>
<build>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>gwt-servlet</includeArtifactIds>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- Convert Java 8 to Java 6 -->
<plugin>
<groupId>net.orfjackal.retrolambda</groupId>
<artifactId>retrolambda-maven-plugin</artifactId>
<version>2.3.0</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>process-main</goal>
<goal>process-test</goal>
</goals>
</execution>
</executions>
<configuration>
<defaultMethods>true</defaultMethods>
<target>1.6</target>
</configuration>
</plugin>
</build>
</profile>

On Wed, 2 Nov 2016 at 10:53 Thomas Broyer <t.bro...@gmail.com> wrote:

>
>
> On Wednesday, November 2, 2016 at 2:38:38 PM UTC+1, Juan Pablo Gardella
> wrote:
>
> Hi all,
>
> At release notes is not mentioned that now it will support only java7.
>
>
> Good catch!
>
>
> I found tbroyer comment here:
> http://stackoverflow.com/questions/28879590/jdk-and-jre-minimal-versions-required-for-gwt-compiling-and-running
>
> Can be updated the release notes with that?
> http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_0
>
> Let me know, I can create the pull request.
>
>
> Yes please, go ahead.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to