Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
28b9875
docs(compute-samples): add snippets and tests for windows instance ma…
Sita04 Apr 11, 2022
2b28330
lint fix
Sita04 Apr 11, 2022
73c0fd8
fix(deps): update dependency com.google.apis:google-api-services-clou…
renovate-bot Apr 12, 2022
e4ed57e
fix(deps): update dependency com.google.cloud:spring-cloud-gcp-depend…
renovate-bot Apr 12, 2022
d0deb04
chore(deps): update dependency com.google.cloud:spring-cloud-gcp-pubs…
renovate-bot Apr 12, 2022
3f76dc8
fix(deps): update dependency com.google.http-client:google-http-clien…
renovate-bot Apr 12, 2022
fd475b0
chore(deps): update dependency com.google.cloud:spring-cloud-gcp-star…
renovate-bot Apr 13, 2022
dc960c6
fix(deps): update dependency redis.clients:jedis to v4.2.2 (#7008)
renovate-bot Apr 13, 2022
52d2de1
fix(deps): update dependency net.logstash.logback:logstash-logback-en…
renovate-bot Apr 14, 2022
7cfe472
chore(functions/hello-error): update product name (#7011)
Apr 14, 2022
10bc32f
chore(deps): update micronaut packages to v3.4.2 (#7012)
renovate-bot Apr 14, 2022
68b30c5
fix(deps): update dependency com.google.oauth-client:google-oauth-cli…
renovate-bot Apr 14, 2022
4e13a71
fix(deps): update dependency com.google.oauth-client:google-oauth-cli…
renovate-bot Apr 14, 2022
5e42667
fix(deps): update dependency com.google.api-client:google-api-client-…
renovate-bot Apr 14, 2022
d86f5d4
fix(deps): update dependency com.google.api-client:google-api-client-…
renovate-bot Apr 14, 2022
490744c
fix(deps): update dependency com.google.api-client:google-api-client-…
renovate-bot Apr 14, 2022
99b02df
fix(deps): update vertx packages to v4.2.7 (#7016)
renovate-bot Apr 14, 2022
79c2c7c
fix(deps): update dependency com.google.api-client:google-api-client-…
renovate-bot Apr 14, 2022
0c29237
fix(deps): update dependency com.slack.api:slack-app-backend to v1.21…
renovate-bot Apr 14, 2022
61026b8
fix(deps): update dependency com.google.http-client:google-http-clien…
renovate-bot Apr 14, 2022
49febbe
fix(deps): update dependency com.google.api-client:google-api-client …
renovate-bot Apr 14, 2022
506ee4d
fix: Update env var and log filter (#7023)
averikitsch Apr 18, 2022
9a75128
fix(deps): update dependency com.google.cloud:google-cloud-kms to v2.…
renovate-bot Apr 18, 2022
4dece7d
docs(compute-samples): added snippets for suspend resume instance (#7…
Sita04 Apr 18, 2022
a17f8be
fix(deps): update dependency com.google.cloud:google-cloud-monitoring…
renovate-bot Apr 18, 2022
fccdb4f
fix(deps): update dependency com.google.cloud:google-cloud-language t…
renovate-bot Apr 18, 2022
a06b97c
chore(deps): update dependency com.google.cloud.tools:appengine-maven…
renovate-bot Apr 18, 2022
ad6a8ec
fix(deps): update dependency org.projectlombok:lombok to v1.18.24 (#7…
renovate-bot Apr 18, 2022
8452f3d
fix(deps): update dependency org.postgresql:postgresql to v42.3.4 (#7…
renovate-bot Apr 18, 2022
8a67c79
chore(deps): update dependency com.google.cloud.tools:appengine-maven…
renovate-bot Apr 18, 2022
eebc1d1
fix(deps): update dependency com.google.cloud:google-cloud-bigtable t…
renovate-bot Apr 18, 2022
eb0aa94
added mvn surefire plugin
Sita04 Apr 19, 2022
2fe9b4a
Add one Java17 bundled services sample, and generic README. (#6909)
ludoch Apr 20, 2022
7bf11e1
chore(deps): update kotlin.version to v1.6.21 (#7035)
renovate-bot Apr 21, 2022
d8d210e
chore(deps): update quarkus.version to v2.8.1.final (#7036)
renovate-bot Apr 21, 2022
8170865
fix(deps): update dependency com.google.cloud:google-cloud-policy-tro…
renovate-bot Apr 21, 2022
28ba2bb
fix(deps): update dependency com.google.cloud:google-cloud-tasks to v…
renovate-bot Apr 21, 2022
3052a44
fix(deps): update dependency com.google.cloud:google-cloud-workflow-e…
renovate-bot Apr 21, 2022
d8606f8
fix(deps): update dependency com.google.cloud:google-cloud-dialogflow…
renovate-bot Apr 21, 2022
80b17d8
fix(deps): update dependency com.google.cloud:google-cloud-pubsub to …
renovate-bot Apr 21, 2022
15873c3
chore(deps): update dependency org.jetbrains.kotlin:kotlin-maven-plug…
renovate-bot Apr 21, 2022
cf7ecde
chore(deps): update dependency org.mockito:mockito-core to v4.5.1 (#7…
renovate-bot Apr 21, 2022
f39b1cc
fix(deps): update apache beam packages to v2.38.0 (#7051)
renovate-bot Apr 21, 2022
feecdc2
fix(deps): update dependency org.jetbrains.kotlin:kotlin-stdlib-jdk8 …
renovate-bot Apr 21, 2022
7bf1be2
chore(deps): update dependency org.springframework.integration:spring…
renovate-bot Apr 21, 2022
ec8329f
chore(deps): update dependency org.jetbrains.kotlin:kotlin-test-junit…
renovate-bot Apr 21, 2022
3dc0713
fix(deps): update dependency com.google.apis:google-api-services-iam …
renovate-bot Apr 21, 2022
58de748
deps: use libraries bom for Spanner JDBC samples (#7052)
olavloite Apr 22, 2022
6391fba
updated mvn surefire config
Sita04 Apr 25, 2022
05288ff
updated mvn surefire config
Sita04 Apr 25, 2022
f5a473b
updated mvn surefire plugin
Sita04 Apr 25, 2022
e1665d4
chore: update to ktor 2.0 (#7053)
averikitsch Apr 25, 2022
e1be274
updated comments
Sita04 Apr 25, 2022
71fbf03
modified param value
Sita04 Apr 25, 2022
cfd0de6
fix(deps): update dependency com.google.cloud.bigtable:bigtable-hbase…
renovate-bot Apr 26, 2022
66e7c9d
fix(deps): update dependency ch.qos.logback:logback-classic to v1.2.1…
renovate-bot Apr 26, 2022
28191a4
chore(deps): update quarkus.version to v2.8.2.final (#7058)
renovate-bot Apr 26, 2022
b9bcfe2
chore(deps): update ktor_version to v2.0.1-eap-377 (#7057)
renovate-bot Apr 26, 2022
f576ba8
fix(deps): update dependency com.google.cloud:google-cloud-kms to v2.…
renovate-bot Apr 26, 2022
023cec0
chore(deps): update dependency com.google.cloud.bigtable:bigtable-hba…
renovate-bot Apr 26, 2022
a5421d8
fix(deps): update dependency com.google.cloud:google-cloud-monitoring…
renovate-bot Apr 26, 2022
b7fe7f0
fix(deps): update dependency org.springdoc:springdoc-openapi-ui to v1…
renovate-bot Apr 26, 2022
f06baee
chore(deps): update artifact (#7068)
renovate-bot Apr 26, 2022
399a4c7
fix(deps): update dependency com.google.cloud.bigtable:bigtable-hbase…
renovate-bot Apr 26, 2022
42f2fd5
fix(deps): update dependency mysql:mysql-connector-java to v8.0.29 (#…
renovate-bot Apr 26, 2022
2a98fd3
fix(deps): update dependency com.google.cloud.bigtable:bigtable-hbase…
renovate-bot Apr 26, 2022
39d6705
chore(deps): update dependency com.google.cloud:google-cloud-spanner …
renovate-bot Apr 26, 2022
c6b1915
updated parallel config
Sita04 Apr 26, 2022
538f4ff
updated parallel config
Sita04 Apr 26, 2022
dd9d0c0
added forkcount for multi-module testing
Sita04 Apr 26, 2022
294ebbb
reverted sysout null in cleanup to enable parallel testing
Sita04 Apr 26, 2022
0ec5458
Merge remote-tracking branch 'origin/compute-creating-managing-window…
Sita04 Apr 26, 2022
a69eaee
parallel testing only methods in a single class
Sita04 Apr 26, 2022
4f28743
Update pom.xml
Sita04 Apr 26, 2022
8764533
fix(deps): update dependency com.google.protobuf:protobuf-java to v3.…
renovate-bot Apr 26, 2022
e28d8bb
added junit jupiter engine to run beforeeach and aftereach methods in…
Sita04 Apr 27, 2022
c978ab9
Merge remote-tracking branch 'origin/compute-creating-managing-window…
Sita04 Apr 27, 2022
8fbb00e
chore(deps): update dependency com.google.cloud:google-cloud-storage …
renovate-bot Apr 27, 2022
a1c9996
chore(deps): update ktor_version to v2.0.1-eap-378 (#7069)
renovate-bot Apr 27, 2022
f7c23f3
docs(compute-samples): added region tags (#7070)
Sita04 Apr 27, 2022
1cea130
chore(deps): update ktor_version to v2.0.1-eap-384 (#7075)
renovate-bot Apr 29, 2022
72818b5
chore(deps): update dependency org.seleniumhq.selenium:selenium-chrom…
renovate-bot Apr 29, 2022
7d52ad5
fix(deps): update dependency com.google.apis:google-api-services-iam …
renovate-bot Apr 29, 2022
8be829e
feat: samples for Spanner PostgreSQL JDBC (#6920)
olavloite May 2, 2022
4f932d7
Update README.md (#7084)
kongweihan May 2, 2022
60d1699
chore(deps): update ktor_version to v2.0.2-eap-386 (#7081)
renovate-bot May 2, 2022
e1d9fa0
chore(deps): update micronaut packages to v3.4.3 (#7082)
renovate-bot May 2, 2022
66103ab
fix(deps): update opencensus packages to v0.31.1 (#7083)
renovate-bot May 2, 2022
f63f258
feat: Update Cloud SQL MySQL samples to include more connection metho…
shubha-rajan May 2, 2022
99a76e6
chore: add Kokoro build configs for JDK 17 (#7085)
shubha-rajan May 3, 2022
b864fcd
chore: require Java 17 CI check (#7097)
shubha-rajan May 4, 2022
0d0097a
fix(deps): update dependency com.google.cloud.bigtable:bigtable-hbase…
renovate-bot May 5, 2022
3d50d0e
fix(deps): update dependency com.google.cloud.sql:cloud-sql-connector…
renovate-bot May 5, 2022
215b55f
fix(deps): update dependency com.google.cloud.sql:cloud-sql-connector…
renovate-bot May 5, 2022
4039e1e
fix(deps): update dependency com.google.cloud.bigtable:bigtable-hbase…
renovate-bot May 5, 2022
4492609
feat: Update Postgres samples to include more connection methods (#7080)
shubha-rajan May 5, 2022
3bfe22a
fix(deps): update dependency com.slack.api:slack-app-backend to v1.22…
renovate-bot May 5, 2022
4ff4762
fix(deps): update dependency com.google.cloud.sql:cloud-sql-connector…
renovate-bot May 6, 2022
9db61af
fix(deps): update dependency com.google.cloud.sql:mysql-socket-factor…
renovate-bot May 6, 2022
b0240d6
fix(deps): update dependency com.google.cloud.functions.invoker:java-…
renovate-bot May 6, 2022
5aaf0d6
chore(deps): update dependency com.github.spotbugs:spotbugs-annotatio…
renovate-bot May 6, 2022
96f33ac
fix(deps): update dependency com.google.cloud.bigtable:bigtable-hbase…
renovate-bot May 6, 2022
45593f8
chore(deps): update quarkus.version to v2.9.0.final (#7107)
renovate-bot May 6, 2022
f890910
chore(deps): update dependency com.google.cloud.bigtable:bigtable-hba…
renovate-bot May 6, 2022
48bd06c
fix(deps): update dependency com.google.http-client:google-http-clien…
renovate-bot May 6, 2022
5f7a506
fix(deps): update dependency com.google.apis:google-api-services-iam …
renovate-bot May 6, 2022
7f07254
chore(deps): update ktor_version to v2.0.2-eap-389 (#7100)
renovate-bot May 6, 2022
eec6f6b
fix(deps): update dependency org.postgresql:postgresql to v42.3.5 (#7…
renovate-bot May 6, 2022
d944990
chore: add maven-war-plugin to fix java17 periodic failures (#7117)
shubha-rajan May 6, 2022
956a962
chore(deps): update dependency com.google.cloud.tools:appengine-gradl…
renovate-bot May 6, 2022
02f3e2a
fix: java.lang.reflect.InaccessibleObjectException in functions.Stac…
shubha-rajan May 9, 2022
e96d917
feat: update SQL Server samples to include more connection methods (#…
shubha-rajan May 9, 2022
a4a2e50
fix(deps): update dependency com.google.api-client:google-api-client-…
renovate-bot May 10, 2022
270311f
fix(deps): update dependency com.google.api-client:google-api-client-…
renovate-bot May 10, 2022
27ca40a
fix(deps): update dependency com.google.api-client:google-api-client-…
renovate-bot May 10, 2022
4b111ef
chore(deps): update dependency org.apache.hbase:hbase-client to v2.4.…
renovate-bot May 10, 2022
e2a9b4d
chore(deps): update dependency org.codehaus.mojo:exec-maven-plugin to…
renovate-bot May 10, 2022
8612444
fix(deps): update dependency com.slack.api:slack-app-backend to v1.22…
renovate-bot May 10, 2022
cf73d28
fix(deps): update dependency redis.clients:jedis to v4.2.3 (#7131)
renovate-bot May 10, 2022
6fc0d85
fix(deps): update dependency com.auth0:java-jwt to v3.19.2 (#7123)
renovate-bot May 10, 2022
3ffbef2
fix(deps): update dependency com.google.cloud:google-cloud-video-tran…
renovate-bot May 10, 2022
e7a0dea
fix(deps): update dependency com.google.apis:google-api-services-clou…
renovate-bot May 10, 2022
9a08106
fix(deps): update dependency com.google.http-client:google-http-clien…
renovate-bot May 10, 2022
24eff5a
fix(deps): update dependency com.google.api-client:google-api-client …
renovate-bot May 10, 2022
0919c59
fix(deps): update dependency com.microsoft.sqlserver:mssql-jdbc to v1…
renovate-bot May 10, 2022
5560581
fix(deps): update dependency com.google.protobuf:protobuf-java-util t…
renovate-bot May 12, 2022
cad8e98
docs: add Google Cloud Samples browser link to readme template (#7137)
msampathkumar May 12, 2022
6f8408f
docs(bundled services): Include instructions to add bundled services …
Mukamik May 12, 2022
e9dec4f
docs(compute-samples): added parallel testing support (#7071)
Sita04 May 13, 2022
8ae047c
docs(compute-samples): add snippets and tests for windows instance ma…
Sita04 Apr 11, 2022
5cc3134
lint fix
Sita04 Apr 11, 2022
4faedba
added mvn surefire plugin
Sita04 Apr 19, 2022
fa17e12
updated mvn surefire config
Sita04 Apr 25, 2022
5101298
updated mvn surefire config
Sita04 Apr 25, 2022
e21e626
updated comments
Sita04 Apr 25, 2022
190e4f5
modified param value
Sita04 Apr 25, 2022
aec0f29
added junit jupiter engine to run beforeeach and aftereach methods in…
Sita04 Apr 27, 2022
4839010
added timeout for get methods and jupiter dependency
Sita04 May 13, 2022
deba5c9
Merge remote-tracking branch 'origin/compute-creating-managing-window…
Sita04 May 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/sync-repo-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ branchProtectionRules:
requiredStatusCheckContexts:
- 'Kokoro CI - Java 11'
- 'Kokoro CI - Java 8'
- 'Kokoro CI - Java 17'
- 'Kokoro CI - Lint'
- 'cla/google'
requiredApprovingReviewCount: 1
Expand Down
45 changes: 45 additions & 0 deletions .kokoro/java17/common.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Copyright 2022 Google LLC
#
# 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.

# Format: //devtools/kokoro/config/proto/build.proto

# Build timeout of 5 hours
timeout_mins: 360

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "java-docs-samples/.kokoro/trampoline.sh"

action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Set the JAVA VERSION env var.
env_vars: {
key: "JAVA_VERSION"
value: "1.8,11,17"
}

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/java17"
}

# Access btlr binaries used in the tests
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/btlr"
27 changes: 27 additions & 0 deletions .kokoro/java17/continuous.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2022 Google LLC
#
# 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.

# Format: //devtools/kokoro/config/proto/build.proto

# Tell trampoline which tests to run.
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/java-docs-samples/.kokoro/tests/run_tests.sh"
}

# Only diff from previous commit
env_vars: {
key: "GIT_DIFF"
value: "HEAD~.. ."
}
22 changes: 22 additions & 0 deletions .kokoro/java17/periodic.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2022 Google LLC
#
# 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.

# Format: //devtools/kokoro/config/proto/build.proto

# Tell the trampoline which build file to use.
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/java-docs-samples/.kokoro/tests/run_tests.sh"
}

26 changes: 26 additions & 0 deletions .kokoro/java17/presubmit.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2022 Google LLC
#
# 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.

# Format: //devtools/kokoro/config/proto/build.proto

# Tell the trampoline which build file to use.
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/java-docs-samples/.kokoro/tests/run_tests.sh"
}
# Only diff from main
env_vars: {
key: "GIT_DIFF"
value: "origin/main... ."
}
2 changes: 1 addition & 1 deletion .kokoro/tests/run_test_java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SCRIPT_DIR="$(dirname $0)/"

# Fail the tests if no Java version was found.
POM_JAVA=$(grep -oP '(?<=<maven.compiler.target>).*?(?=</maven.compiler.target>)' pom.xml)
ALLOWED_VERSIONS=("1.8" "11")
ALLOWED_VERSIONS=("1.8" "11" "17")
# shellcheck disable=SC2199
# shellcheck disable=SC2076
if [[ "$POM_JAVA" = "" ]] || [[ ! "${ALLOWED_VERSIONS[@]}" =~ "${POM_JAVA}" ]]; then
Expand Down
4 changes: 4 additions & 0 deletions .kokoro/tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ if [[ "$SCRIPT_DEBUG" != "true" ]]; then
# Update `gcloud` and log versioning for debugging
apt update && apt -y upgrade google-cloud-sdk

echo "********** GIT INFO ***********"
git version
echo "********** GCLOUD INFO ***********"
gcloud -v
echo "********** MAVEN INFO ***********"
Expand Down Expand Up @@ -115,6 +117,8 @@ fi
echo -e "\n******************** TESTING PROJECTS ********************"
test_prog="$PWD/.kokoro/tests/run_test_java.sh"

git config --global --add safe.directory $PWD

# Use btlr to run all the tests in each folder
echo "btlr" "${btlr_args[@]}" -- "${test_prog}"
btlr "${btlr_args[@]}" -- "${test_prog}"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ This repository holds sample code written in Java that demonstrates the
Some samples have accompanying guides on <cloud.google.com>. See respective
README files for details.

## Google Cloud Samples

To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples?l=java).

## Set Up

1. [Set up your Java Development Environment](https://cloud.google.com/java/docs/setup)
Expand Down
37 changes: 23 additions & 14 deletions appengine-java11-bundled-services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,29 @@ access control, billing, and services.

## Development differences between App Engine Java8 and Java11 Bundled Services

The only difference between a Java8 application and a Java11 application is in the `appengine-web.xml` file
The only differences between a Java8 application and a Java11 application are the addition of the bundled services JAR, and an added line in the `appengine-web.xml` file
where you need to define the Java11 runtime and declare you need the App Engine APIs:

In `appengine-web.xml`:
```XML
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<runtime>java11</runtime>
<app-engine-apis>true</app-engine-apis>
</appengine-web-app>
```

While the Java11 runtime is in Beta, in order to deploy the application, you can use the `beta` value for the `gcloudMode` Cloud SDK parameter like:
In your `pom.xml`'s `<dependencies>`:
```XML
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-sdk</artifactId>
<version>2.0.4</version> <!-- or later-->
</dependency>
```


```shell
mvn appengine:deploy -Dapp.deploy.gcloudMode=beta
mvn appengine:deploy
```


Expand All @@ -72,17 +81,17 @@ This sample demonstrates how to use the App Engine Datastore APIs in a Java11 we

You can execute the following steps to transform the java8 appengine-web.xml file to a java11 appengine-web.xml file:

```shell
git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git
cd java-docs-samples
cp -pr appengine-java8 /tmp/java11-samples
cd /tmp/java11-samples
# On Linux:
shopt -s globstar dotglob
for f in **/appengine-web.xml; do sed -i 's.<runtime>java8</runtime>.<runtime>java11</runtime><app-engine-apis>true</app-engine-apis>.' ${f}; done
# on MacOS
for f in **/appengine-web.xml; do sed -i'' -e 's.<runtime>java8</runtime>.<runtime>java11</runtime><app-engine-apis>true</app-engine-apis>.' ${f}; done
```
```shell
git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git
cd java-docs-samples
cp -pr appengine-java8 /tmp/java11-samples
cd /tmp/java11-samples
# On Linux:
shopt -s globstar dotglob
for f in **/appengine-web.xml; do sed -i 's.<runtime>java8</runtime>.<runtime>java11</runtime><app-engine-apis>true</app-engine-apis>.' ${f}; done
# on MacOS
for f in **/appengine-web.xml; do sed -i'' -e 's.<runtime>java8</runtime>.<runtime>java11</runtime><app-engine-apis>true</app-engine-apis>.' ${f}; done
```

You will see in the `tmp/java11` directory all the correct code samples to compile and deploy to the Java11 AppEngine runtime, with bundled services.
Just follow the same documentation as the [Java8 samples][java8-samples].
Expand Down
5 changes: 1 addition & 4 deletions appengine-java11-bundled-services/datastore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ To see the results of the sample application, open

## Deploying

In the following command, replace YOUR-PROJECT-ID with your
[Google Cloud Project ID](https://developers.google.com/console/help/new/#projectnumber)
and SOME-VERSION with a valid version number.

```sh
mvn clean package appengine:deploy
mvn appengine:deployIndex
```
7 changes: 6 additions & 1 deletion appengine-java11-bundled-services/datastore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,15 @@
<!-- for hot reload of the web application -->
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
<configuration>
<projectId>GCLOUD_CONFIG</projectId>
<version>GCLOUD_CONFIG</version>
Expand Down
8 changes: 4 additions & 4 deletions appengine-java11/cloudsql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.28</version>
<version>8.0.29</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.cloud.sql</groupId>
<artifactId>mysql-socket-factory-connector-j-8</artifactId>
<version>1.5.0</version>
<version>1.6.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -92,7 +92,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.4.0</version>
<version>4.5.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -156,7 +156,7 @@
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
<configuration>
<projectId>GCLOUD_CONFIG</projectId>
<version>cloudsql</version>
Expand Down
2 changes: 1 addition & 1 deletion appengine-java11/gaeinfo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Copyright 2019 Google LLC
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
<configuration>
<projectId>GCLOUD_CONFIG</projectId>
<version>gaeinfo</version>
Expand Down
7 changes: 6 additions & 1 deletion appengine-java11/guestbook-cloud-firestore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,15 @@
<build>
<finalName>guestbook</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
<configuration>
<projectId>GCLOUD_CONFIG</projectId>
<version>guestbook</version>
Expand Down
7 changes: 6 additions & 1 deletion appengine-java11/helloworld-servlet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,15 @@ limitations under the License.
<build>
<finalName>helloworld</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
<configuration>
<projectId>GCLOUD_CONFIG</projectId>
<version>helloworld</version>
Expand Down
2 changes: 1 addition & 1 deletion appengine-java11/http-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
<configuration>
<projectId>GCLOUD_CONFIG</projectId>
<version>http-server</version>
Expand Down
1 change: 0 additions & 1 deletion appengine-java11/kotlin-ktor/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@
# limitations under the License.

runtime: java11
entrypoint: 'java -jar target/kotlin-ktor-0.0.1-jar-with-dependencies.jar'
Loading