-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New Plugins #282
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
New Plugins #282
Changes from all commits
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 |
|---|---|---|
|
|
@@ -43,3 +43,6 @@ Session.vim | |
| .netrwhist | ||
| *~ | ||
| tags | ||
|
|
||
| # Gradle | ||
| out/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # Google App Engine Standard Environment Hello World Sample | ||
|
|
||
| This sample demonstrates how to deploy an application on Google App Engine. | ||
|
|
||
| See the [Google App Engine standard environment documentation][ae-docs] for more | ||
| detailed instructions. | ||
|
|
||
| [ae-docs]: https://cloud.google.com/appengine/docs/java/ | ||
|
|
||
| ## Setup | ||
|
|
||
| Use either: | ||
|
|
||
| * `gcloud init` | ||
| * `gcloud beta auth application-default login` | ||
|
|
||
| ## Maven | ||
| ### Running locally | ||
|
|
||
| $ mvn appengine:run | ||
|
|
||
| ### Deploying | ||
|
|
||
| $ mvn appengine:deploy | ||
|
|
||
| ## Gradle | ||
| ### Running locally | ||
|
|
||
| $ gradle appengineRun | ||
|
|
||
| If you do not have gradle installed, you can run using `./gradlew appengineRun`. | ||
|
|
||
| ### Deploying | ||
|
|
||
| $ gradle appengineDeploy | ||
|
|
||
| If you do not have gradle installed, you can deploy using `./gradlew appengineDeploy`. | ||
|
|
||
| <!-- | ||
| ## Intelij Idea | ||
| Limitations - Appengine Standard support in the Intellij plugin is only available for the Ultimate Edition of Idea. | ||
|
|
||
| ### Install and Set Up Cloud Tools for IntelliJ | ||
|
|
||
| To use Cloud Tools for IntelliJ, you must first install IntelliJ IDEA Ultimate edition. | ||
|
|
||
| Next, install the plugins from the IntelliJ IDEA Plugin Repository. | ||
|
|
||
| To install the plugins: | ||
|
|
||
| 1. From inside IDEA, open File > Settings (on Mac OS X, open IntelliJ IDEA > Preferences). | ||
| 1. In the left-hand pane, select Plugins. | ||
| 1. Click Browse repositories. | ||
| 1. In the dialog that opens, select Google Cloud Tools. | ||
| 1. Click Install. | ||
| 1. Click Close. | ||
| 1. Click OK in the Settings dialog. | ||
| 1. Click Restart (or you can click Postpone, but the plugins will not be available until you do restart IDEA.) | ||
|
|
||
| ### Running locally | ||
|
|
||
| ### Deploying | ||
| --> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| buildscript { | ||
| repositories { | ||
| jcenter() // Bintray's repository - a fast Maven Central mirror & more | ||
| mavenCentral() | ||
| } | ||
| dependencies { | ||
| classpath 'com.google.cloud.tools:appengine-gradle-plugin:+' // latest App Engine Gradle plugin | ||
| } | ||
| } | ||
|
|
||
| repositories { | ||
| maven { | ||
| url 'https://maven-central.storage.googleapis.com' // Google's mirror of Maven Central | ||
| // url 'https://oss.sonatype.org/content/repositories/snapshots' // SNAPSHOT Reposiotry | ||
| } | ||
| jcenter() | ||
| mavenCentral() | ||
| } | ||
|
|
||
| apply plugin: 'java' | ||
| apply plugin: 'war' | ||
| apply plugin: 'com.google.cloud.tools.appengine' | ||
|
|
||
| dependencies { // Servlet for App Engine Standard -- only one of these need to be uncommented. | ||
| // providedCompile group: 'javax.servlet', name: 'servlet-api', version:'2.5' | ||
|
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. I guess they uncomment this line if they are not using |
||
| providedCompile 'javax.servlet:javax.servlet-api:3.1.0' // if beta-quickstart in appengine-web.xml | ||
| // Add your dependencies here. | ||
| } | ||
|
|
||
| task wrapper(type: Wrapper) { // use the gradle wrapper "./gradlew.sh ..." | ||
| gradleVersion = '2.14' // "gradle wrapper --gradle-version 2.14" (to create files and directories) | ||
| } | ||
|
|
||
| model { | ||
| appengine { | ||
| run { // dev appserver configuration (standard environments only) | ||
| jvmFlags = ['-Dappengine.user.timezone=UTC'] | ||
| host = '127.0.0.1' | ||
| port = 8080 | ||
| } | ||
|
|
||
| deploy { // deploy configuration | ||
| promote = true | ||
| stopPreviousVersion = true | ||
| } | ||
| } | ||
| } | ||
|
|
||
| group = 'com.example.appengine' | ||
| version = '1.0-SNAPSHOT' | ||
|
|
||
| sourceCompatibility = JavaVersion.VERSION_1_7 | ||
| targetCompatibility = JavaVersion.VERSION_1_7 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #Thu Aug 04 16:12:44 PDT 2016 | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-bin.zip |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Not a problem with your code, but it's annoying that they used the same name for the plugin. That has a lot of potential for confusion as to which plugin someone is using.