Skip to content

Commit a48ef77

Browse files
committed
add copyright and fix review comments
1 parent f22d051 commit a48ef77

15 files changed

Lines changed: 120 additions & 10 deletions

File tree

appengine-standard-java8/kotlin-appengine-standard/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
App Engine Java Kotlin Servlet 3.1 with Java8
2+
===
23

34
## Sample Servlet 3.1 written in Kotlin for use with App Engine Java8 Standard.
45

appengine-standard-java8/kotlin-appengine-standard/nbactions.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright 2017 Google Inc.
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
Unless required by applicable law or agreed to in writing, software
9+
distributed under the License is distributed on an "AS IS" BASIS,
10+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
See the License for the specific language governing permissions and
12+
limitations under the License.
13+
-->
214
<actions>
315
<action>
416
<actionName>CUSTOM-appengine:devserver</actionName>

appengine-standard-java8/kotlin-appengine-standard/pom.xml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright 2017 Google Inc.
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
Unless required by applicable law or agreed to in writing, software
9+
distributed under the License is distributed on an "AS IS" BASIS,
10+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
See the License for the specific language governing permissions and
12+
limitations under the License.
13+
-->
214
<project xmlns="http://maven.apache.org/POM/4.0.0"
315
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
416
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
@@ -8,8 +20,15 @@
820
<version>1.0-SNAPSHOT</version>
921

1022
<groupId>com.google.appengine.demos</groupId>
11-
<artifactId>kotlin-appengine-Standard</artifactId>
23+
<artifactId>kotlin-appengine-standard</artifactId>
1224

25+
<parent> <!-- Get parameters and allow bulk testing -->
26+
<artifactId>getting-started-java</artifactId>
27+
<groupId>com.example</groupId>
28+
<version>1.0.0</version>
29+
<relativePath>../..</relativePath>
30+
</parent>
31+
1332
<dependencies>
1433
<dependency>
1534
<groupId>com.google.appengine</groupId>

appengine-standard-java8/kotlin-appengine-standard/src/main/kotlin/HomeController.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// See https://github.com/JetBrains/kotlin-examples/blob/master/LICENSE
12
package org.jetbrains.kotlin.demo
23

34
import javax.servlet.annotation.WebServlet
@@ -11,4 +12,4 @@ class HomeController : HttpServlet() {
1112
res.writer.write("Hello, World! I am a Servlet 3.1 running on Java8 App Engine Standard, and written in Kotlin...")
1213

1314
}
14-
}
15+
}

appengine-standard-java8/kotlin-appengine-standard/src/main/webapp/WEB-INF/appengine-web.xml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2017 Google Inc.
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
Unless required by applicable law or agreed to in writing, software
9+
distributed under the License is distributed on an "AS IS" BASIS,
10+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
See the License for the specific language governing permissions and
12+
limitations under the License.
13+
-->
214
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
315
<application>kotlin-gae</application>
416
<version>kotlin</version>
517
<threadsafe>true</threadsafe>
618
<runtime>java8</runtime>
719
<module>default</module>
8-
<manual-scaling>
9-
<instances>2</instances>
10-
</manual-scaling>
1120
<system-properties>
1221
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
1322
</system-properties>

appengine-standard-java8/kotlin-appengine-standard/src/main/webapp/WEB-INF/logging.properties

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Copyright 2017 Google Inc.
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS,
8+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
# See the License for the specific language governing permissions and
10+
# limitations under the License.
11+
112
# A default java.util.logging configuration.
213
# (All App Engine logging is through java.util.logging by default).
314
#

appengine-standard-java8/kotlin-springboot-appengine-standard/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
App Engine Java SpringBoot Kotlin application
2+
===
23

34
## Sample SpringBoot application written in Kotlin for use with App Engine Java8 Standard.
45

appengine-standard-java8/kotlin-springboot-appengine-standard/nbactions.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright 2017 Google Inc.
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
Unless required by applicable law or agreed to in writing, software
9+
distributed under the License is distributed on an "AS IS" BASIS,
10+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
See the License for the specific language governing permissions and
12+
limitations under the License.
13+
-->
214
<actions>
315
<action>
416
<actionName>CUSTOM-appengine:devserver</actionName>

appengine-standard-java8/kotlin-springboot-appengine-standard/pom.xml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright 2017 Google Inc.
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
Unless required by applicable law or agreed to in writing, software
9+
distributed under the License is distributed on an "AS IS" BASIS,
10+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
See the License for the specific language governing permissions and
12+
limitations under the License.
13+
-->
214
<project xmlns="http://maven.apache.org/POM/4.0.0"
315
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
416
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
@@ -9,7 +21,14 @@
921

1022
<groupId>com.google.appengine.demos</groupId>
1123
<artifactId>kotlin-springboot-appengine-standard</artifactId>
12-
24+
25+
<parent> <!-- Get parameters and allow bulk testing -->
26+
<artifactId>getting-started-java</artifactId>
27+
<groupId>com.example</groupId>
28+
<version>1.0.0</version>
29+
<relativePath>../..</relativePath>
30+
</parent>
31+
1332
<dependencies>
1433
<dependency>
1534
<groupId>com.google.appengine</groupId>

appengine-standard-java8/kotlin-springboot-appengine-standard/src/main/kotlin/Application.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// See https://github.com/JetBrains/kotlin-examples/blob/master/LICENSE
12
package org.jetbrains.kotlin.demo
23

34
import org.springframework.boot.SpringApplication

0 commit comments

Comments
 (0)