8000 fix build.gradle · 3Thomson14/java-docs-samples@249f0b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 249f0b4

Browse files
author
Frank Natividad
committed
fix build.gradle
1 parent f5a7038 commit 249f0b4

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

appengine-java8/endpoints-v2-guice/build.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,25 @@ endpointsServer {
5656
serviceClasses = ['com.example.echo.Echo']
5757
}
5858

59+
appengine { // App Engine tasks configuration
60+
deploy { // deploy configuration
61+
version = findProperty("appengine.deploy.version")
62+
63+
def promoteProp = findProperty("appengine.deploy.promote")
64+
if (promoteProp != null) {
65+
promote = new Boolean(promoteProp)
66+
}
67+
}
68+
}
69+
5970
sourceCompatibility = 1.8 // App Engine Standard uses Java 8
6071
targetCompatibility = 1.8 // App Engine Standard uses Java 8
6172

6273
// this replaces the ${endpoints.project.id} in appengine-web.xml and web.xml
6374
task replaceProjectId(type: Copy) {
6475
from 'src/main/webapp/WEB-INF/'
6576
include '*.xml'
66-
into 'build/exploded-guice-example/WEB-INF'
77+
into 'build/exploded-endpoints-v2-guice/WEB-INF'
6778
expand(endpoints:[project:[id:projectId]])
6879
filteringCharset = 'UTF-8'
6980
}

0 commit comments

Comments
 (0)
0