Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ Session.vim
.netrwhist
*~
tags

# Gradle
out/
63 changes: 63 additions & 0 deletions appengine/helloworld-new-plugins/README.md
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
Copy link
Contributor

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.


## 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
-->
53 changes: 53 additions & 0 deletions appengine/helloworld-new-plugins/build.gradle
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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess they uncomment this line if they are not using beta-quickstart? Maybe add a comment explaining that only one of these lines should be uncommented and when.

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
164 changes: 164 additions & 0 deletions appengine/helloworld-new-plugins/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 90 additions & 0 deletions appengine/helloworld-new-plugins/gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading