-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Added gradle build configuration for endpoints-framework-v2/backend #681
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
Changes from 3 commits
ca74223
f625421
a287636
b3707d4
0e7b707
e0e900c
627aa6a
ed9ab17
7f3d842
68b1cc5
56d86e0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| import org.apache.tools.ant.filters.ReplaceTokens | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add copyright, you can copy the one used in the migration sample. |
||
|
|
||
| buildscript { | ||
| repositories { | ||
| mavenCentral() | ||
| } | ||
|
|
||
| dependencies { | ||
| classpath 'com.google.cloud.tools:endpoints-framework-gradle-plugin:1.0.0' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use |
||
| classpath 'com.google.cloud.tools:appengine-gradle-plugin:1.3.2' | ||
| } | ||
| } | ||
|
|
||
| repositories { | ||
| maven { | ||
| url 'https://maven-central.storage.googleapis.com' | ||
| } | ||
| jcenter() | ||
| mavenCentral() | ||
| } | ||
|
|
||
| task wrapper(type: Wrapper) { | ||
| gradleVersion = '3.5' | ||
| } | ||
|
|
||
| def projectId = 'YOUR_PROJECT_ID' | ||
|
|
||
| apply plugin: 'java' | ||
| apply plugin: 'war' | ||
| apply plugin: 'com.google.cloud.tools.endpoints-framework-server' | ||
| apply plugin: 'com.google.cloud.tools.appengine' | ||
|
|
||
| dependencies { | ||
| compile 'com.google.endpoints:endpoints-framework:2.0.7' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use |
||
| compile 'com.google.endpoints:endpoints-management-control-appengine:1.0.3' | ||
| compile 'com.google.endpoints:endpoints-framework-auth:1.0.3' | ||
| } | ||
|
|
||
| endpointsServer { | ||
| // Endpoints Framework Plugin server-side configuration | ||
| hostname = "echo-api.endpoints.${projectId}.cloud.goog" | ||
| } | ||
|
|
||
| sourceCompatibility = 1.7 // App Engine Standard uses Java 7 | ||
| targetCompatibility = 1.7 // App Engine Standard uses Java 7 | ||
|
|
||
| // this replaces the ${endpoints.project.id} in appengine-web.xml and web.xml | ||
| task replaceProjectId(type: Copy) { | ||
| from 'src/main/webapp/WEB-INF/' | ||
| include '*.xml' | ||
| into 'build/exploded-backend/WEB-INF' | ||
| expand(endpoints:[project:[id:projectId]]) | ||
| filteringCharset = 'UTF-8' | ||
| } | ||
| assemble.dependsOn replaceProjectId | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't parsed correctly. I see markdown being displayed instead of the link.