Skip to content

Commit 66fc6da

Browse files
authored
* update hello world for new gradle & maven plugins 1. add license & tags to app.yaml 2. fix some versions and naming in the pom.xml 3. add tags to pom.xml 4. remove a blank line from build.gradle
1 parent ec01eb5 commit 66fc6da

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

managed_vms/helloworld/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ model {
5656
stopPreviousVersion = true // default - stop the current version
5757
promote = true // default - & make this the current version
5858
}
59-
6059
}
6160
}
6261
// [END model]

managed_vms/helloworld/pom.xml

+8-5
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
-->
16+
<!-- [START project] -->
1617
<project>
1718
<modelVersion>4.0.0</modelVersion>
1819
<packaging>war</packaging>
1920
<version>1.0-SNAPSHOT</version>
20-
<groupId>com.example.managedvms</groupId>
21-
<artifactId>managed-vms-helloworld</artifactId>
21+
<groupId>com.example.flexible</groupId>
22+
<artifactId>flexible-helloworld</artifactId>
2223

2324
<parent>
2425
<artifactId>doc-samples</artifactId>
@@ -28,11 +29,12 @@
2829
</parent>
2930

3031
<properties>
31-
<maven.compiler.target>1.7</maven.compiler.target>
32-
<maven.compiler.source>1.7</maven.compiler.source>
33-
<maven-war-plugin-version>2.6</maven-war-plugin-version>
32+
<maven.compiler.target>1.8</maven.compiler.target>
33+
<maven.compiler.source>1.8</maven.compiler.source>
34+
3435
<appengine.maven.plugin>0.1.1-beta</appengine.maven.plugin>
3536
<jetty-maven-plugin-version>9.3.7.v20160115</jetty-maven-plugin-version>
37+
3638
<failOnMissingWebXml>false</failOnMissingWebXml>
3739
</properties>
3840

@@ -75,3 +77,4 @@
7577
</plugins>
7678
</build>
7779
</project>
80+
<!-- [END project] -->
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
1+
# Copyright 2016 Google Inc. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# [START appyaml]
115
runtime: java
216
vm: true
317

418
handlers:
519
- url: /.*
620
script: this field is required, but ignored
721
secure: always
22+
# [END appyaml]

0 commit comments

Comments
 (0)