-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. More comments to build.gradle 2. add the wrapper jars 3. tags
- Loading branch information
Showing
3 changed files
with
37 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,64 @@ | ||
buildscript { | ||
// Copyright 2015 Google Inc. All Rights Reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// [start gradle] | ||
buildscript { // Configuration for building | ||
repositories { | ||
jcenter() // Bintray's repository - a fast Maven Central mirror & more | ||
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 | ||
classpath 'com.google.cloud.tools:appengine-gradle-plugin:+' // latest App Engine Gradle tasks | ||
} | ||
} | ||
|
||
repositories { | ||
repositories { // repositories for Jar's you access in your code | ||
maven { | ||
url 'https://maven-central.storage.googleapis.com' // Google's mirror of Maven Central | ||
// url 'https://oss.sonatype.org/content/repositories/snapshots' // SNAPSHOT Reposiotry (if needed) | ||
url 'https://maven-central.storage.googleapis.com' // Google's mirror of Maven Central | ||
// url 'https://oss.sonatype.org/content/repositories/snapshots' // SNAPSHOT Reposiotry (if needed) | ||
} | ||
jcenter() | ||
mavenCentral() | ||
} | ||
|
||
apply plugin: 'java' | ||
apply plugin: 'war' | ||
apply plugin: 'com.google.cloud.tools.appengine' | ||
apply plugin: 'java' // standard Java tasks | ||
apply plugin: 'war' // standard Web Archive plugin | ||
apply plugin: 'com.google.cloud.tools.appengine' // App Engine tasks | ||
|
||
dependencies { // Servlet for App Engine Standard -- only one of these need to be uncommented. | ||
// providedCompile group: 'javax.servlet', name: 'servlet-api', version:'2.5' | ||
providedCompile 'javax.servlet:javax.servlet-api:3.1.0' // if beta-quickstart in appengine-web.xml | ||
providedCompile 'javax.servlet:javax.servlet-api:3.1.0' // if java_quickstart in appengine-web.xml | ||
compile 'com.google.appengine:appengine:+ | ||
// 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 | ||
appengine { // App Engine tasks configuration | ||
run { // local (dev_appserver) configuration (standard environments only) | ||
port = 8080 // default | ||
} | ||
deploy { // deploy configuration | ||
promote = true | ||
stopPreviousVersion = true | ||
deploy { // deploy configuration | ||
stopPreviousVersion = true // default - stop the current version | ||
promote = true // default - & make this the current version | ||
} | ||
} | ||
} | ||
group = 'com.example.appengine' | ||
version = '1.0-SNAPSHOT' | ||
group = 'com.example.appengine' // Generated output GroupId | ||
version = '1.0-SNAPSHOT' // Version in generated output | ||
sourceCompatibility = JavaVersion.VERSION_1_7 | ||
targetCompatibility = JavaVersion.VERSION_1_7 | ||
sourceCompatibility = JavaVersion.VERSION_1_7 // App Engine Standard uses Java 7 | ||
targetCompatibility = JavaVersion.VERSION_1_7 // App Engine Standard uses Java 7 | ||
// [end gradle] |
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
appengine/helloworld-new-plugins/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters