Skip to content

Commit cb1d17c

Browse files
authored
* New Plugins
1 parent ce761e7 commit cb1d17c

File tree

12 files changed

+525
-0
lines changed

12 files changed

+525
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ Session.vim
4343
.netrwhist
4444
*~
4545
tags
46+
47+
# Gradle
48+
out/
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Google App Engine Standard Environment Hello World Sample
2+
3+
This sample demonstrates how to deploy an application on Google App Engine.
4+
5+
See the [Google App Engine standard environment documentation][ae-docs] for more
6+
detailed instructions.
7+
8+
[ae-docs]: https://cloud.google.com/appengine/docs/java/
9+
10+
## Setup
11+
12+
Use either:
13+
14+
* `gcloud init`
15+
* `gcloud beta auth application-default login`
16+
17+
## Maven
18+
### Running locally
19+
20+
$ mvn appengine:run
21+
22+
### Deploying
23+
24+
$ mvn appengine:deploy
25+
26+
## Gradle
27+
### Running locally
28+
29+
$ gradle appengineRun
30+
31+
If you do not have gradle installed, you can run using `./gradlew appengineRun`.
32+
33+
### Deploying
34+
35+
$ gradle appengineDeploy
36+
37+
If you do not have gradle installed, you can deploy using `./gradlew appengineDeploy`.
38+
39+
<!--
40+
## Intelij Idea
41+
Limitations - Appengine Standard support in the Intellij plugin is only available for the Ultimate Edition of Idea.
42+
43+
### Install and Set Up Cloud Tools for IntelliJ
44+
45+
To use Cloud Tools for IntelliJ, you must first install IntelliJ IDEA Ultimate edition.
46+
47+
Next, install the plugins from the IntelliJ IDEA Plugin Repository.
48+
49+
To install the plugins:
50+
51+
1. From inside IDEA, open File > Settings (on Mac OS X, open IntelliJ IDEA > Preferences).
52+
1. In the left-hand pane, select Plugins.
53+
1. Click Browse repositories.
54+
1. In the dialog that opens, select Google Cloud Tools.
55+
1. Click Install.
56+
1. Click Close.
57+
1. Click OK in the Settings dialog.
58+
1. Click Restart (or you can click Postpone, but the plugins will not be available until you do restart IDEA.)
59+
60+
### Running locally
61+
62+
### Deploying
63+
-->
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
buildscript {
2+
repositories {
3+
jcenter() // Bintray's repository - a fast Maven Central mirror & more
4+
mavenCentral()
5+
}
6+
dependencies {
7+
classpath 'com.google.cloud.tools:appengine-gradle-plugin:+' // latest App Engine Gradle plugin
8+
}
9+
}
10+
11+
repositories {
12+
maven {
13+
url 'https://maven-central.storage.googleapis.com' // Google's mirror of Maven Central
14+
// url 'https://oss.sonatype.org/content/repositories/snapshots' // SNAPSHOT Reposiotry
15+
}
16+
jcenter()
17+
mavenCentral()
18+
}
19+
20+
apply plugin: 'java'
21+
apply plugin: 'war'
22+
apply plugin: 'com.google.cloud.tools.appengine'
23+
24+
dependencies { // Servlet for App Engine Standard -- only one of these need to be uncommented.
25+
// providedCompile group: 'javax.servlet', name: 'servlet-api', version:'2.5'
26+
providedCompile 'javax.servlet:javax.servlet-api:3.1.0' // if beta-quickstart in appengine-web.xml
27+
// Add your dependencies here.
28+
}
29+
30+
task wrapper(type: Wrapper) { // use the gradle wrapper "./gradlew.sh ..."
31+
gradleVersion = '2.14' // "gradle wrapper --gradle-version 2.14" (to create files and directories)
32+
}
33+
34+
model {
35+
appengine {
36+
run { // dev appserver configuration (standard environments only)
37+
jvmFlags = ['-Dappengine.user.timezone=UTC']
38+
host = '127.0.0.1'
39+
port = 8080
40+
}
41+
42+
deploy { // deploy configuration
43+
promote = true
44+
stopPreviousVersion = true
45+
}
46+
}
47+
}
48+
49+
group = 'com.example.appengine'
50+
version = '1.0-SNAPSHOT'
51+
52+
sourceCompatibility = JavaVersion.VERSION_1_7
53+
targetCompatibility = JavaVersion.VERSION_1_7
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Thu Aug 04 16:12:44 PDT 2016
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-bin.zip

appengine/helloworld-new-plugins/gradlew

Lines changed: 164 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

appengine/helloworld-new-plugins/gradlew.bat

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)