Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set java 11 as minimum for sample apps templates #10019

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions user/src/com/google/gwt/user/tools/templates/ant/build.xmlsrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<mkdir dir="@warFolder/WEB-INF/classes"/>
<javac srcdir="@srcFolder" includes="**" encoding="utf-8"
destdir="@warFolder/WEB-INF/classes"
source="1.7" target="1.7" nowarn="true"
source="11" target="11" nowarn="true"
debug="true" debuglevel="lines,vars,source">
<classpath refid="project.class.path"/>
</javac>
Expand Down Expand Up @@ -70,7 +70,7 @@
@testTargetsBegin
<target name="javac.tests" depends="javac" description="Compiles test code">
<javac srcdir="@testFolder" includes="**" encoding="utf-8"
source="1.7" target="1.7" nowarn="true"
source="11" target="11" nowarn="true"
destdir="@warFolder/WEB-INF/classes"
debug="true" debuglevel="lines,vars,source">
<classpath location="@junitJar"/>
Expand Down
12 changes: 6 additions & 6 deletions user/src/com/google/gwt/user/tools/templates/maven/pom.xmlsrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

<properties>

<!-- Setting maven.compiler.source to something different to 1.8
<!-- Setting maven.compiler.source to something different to 11
needs that you configure the sourceLevel in gwt-maven-plugin since
GWT compiler 2.8 and above requires 1.8 (see gwt-maven-plugin block below) -->
<maven.compiler.source>1.8</maven.compiler.source>
vegegoku marked this conversation as resolved.
Show resolved Hide resolved
<maven.compiler.target>1.8</maven.compiler.target>
GWT compiler 2.12.0 and above requires 11 (see gwt-maven-plugin block below) -->
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>

<!-- Don't let your Mac use a crazy non-standard encoding -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -83,9 +83,9 @@
<moduleName>@moduleName</moduleName>
<moduleShortName>@moduleShortName</moduleShortName>
<failOnError>true</failOnError>
<!-- GWT compiler 2.8 and above requires 1.8, hence define sourceLevel here if you use
<!-- GWT compiler 2.12.0 and above requires 11, hence define sourceLevel here if you use
a different source language for java compilation -->
<sourceLevel>1.8</sourceLevel>
<release>11</release>
vegegoku marked this conversation as resolved.
Show resolved Hide resolved
<!-- Compiler configuration -->
<compilerArgs>
<!-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) -->
Expand Down