From a9dd2d694abbb75498a735482e8dd616d7bd0359 Mon Sep 17 00:00:00 2001 From: Daniel Tang Date: Mon, 12 Dec 2016 16:07:31 -0800 Subject: [PATCH 1/2] enforce java 7 on Endpoints sample Currently, mvn appengine:update fails because it compiles Java 8 bytecode. This forces the app code to Java 7. --- appengine/endpoints-frameworks-v2/backend/pom.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/appengine/endpoints-frameworks-v2/backend/pom.xml b/appengine/endpoints-frameworks-v2/backend/pom.xml index bffc894ab3f..1bc84c63a84 100644 --- a/appengine/endpoints-frameworks-v2/backend/pom.xml +++ b/appengine/endpoints-frameworks-v2/backend/pom.xml @@ -154,6 +154,15 @@ + + org.apache.maven.plugins + maven-compiler-plugin + 3.6.0 + + 1.7 + 1.7 + + From b8a0b302fe1b42413ac9b8af97865f4942f2e9b4 Mon Sep 17 00:00:00 2001 From: Daniel Tang Date: Mon, 12 Dec 2016 17:26:05 -0800 Subject: [PATCH 2/2] set property instead of including plugin --- appengine/endpoints-frameworks-v2/backend/pom.xml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/appengine/endpoints-frameworks-v2/backend/pom.xml b/appengine/endpoints-frameworks-v2/backend/pom.xml index 1bc84c63a84..fb4f8491086 100644 --- a/appengine/endpoints-frameworks-v2/backend/pom.xml +++ b/appengine/endpoints-frameworks-v2/backend/pom.xml @@ -35,6 +35,8 @@ 1.0.0-beta.11 YOUR_PROJECT_ID + 1.7 + 1.7 @@ -154,15 +156,6 @@ - - org.apache.maven.plugins - maven-compiler-plugin - 3.6.0 - - 1.7 - 1.7 - -