From 0d1bb6f1eb39351418e1a4b669d38e71015a6a3e Mon Sep 17 00:00:00 2001 From: buildmaster Date: Tue, 21 Apr 2020 22:36:22 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- reference/html/gcp-intro.html | 37 +++++++++++++++++++++++++++++++---- reference/html/gcp.html | 37 +++++++++++++++++++++++++++++++---- 2 files changed, 66 insertions(+), 8 deletions(-) diff --git a/reference/html/gcp-intro.html b/reference/html/gcp-intro.html index 5a4fbaeae..e904efb9f 100644 --- a/reference/html/gcp-intro.html +++ b/reference/html/gcp-intro.html @@ -196,7 +196,24 @@ public class CloudFunctionMain { You can get on the whitelist to try it out.

-

First, add the Shade Plugin configuration to generate a fat jar when you run the mvn package command.

+

To deploy to Google Cloud Function, you need to produce a fat jar using the Shade plugin, rather than the Spring Boot plugin.

+
+
+

First, if you already have the Spring Boot plugin in your pom.xml, remove it:

+
+
+
+
<!-- Remove this block by deleting or commenting it out -->
+<!--
+<plugin>
+    <groupId>org.springframework.boot</groupId>
+    <artifactId>spring-boot-maven-plugin</artifactId>
+</plugin>
+-->
+
+
+
+

Then, add the Shade Plugin configuration to generate a fat jar when you run the mvn package command.

Package the application.

@@ -243,7 +272,7 @@ You can get on the
-

You should see the fat jar in deploy directory.

+

You should see the fat jar in target/deploy directory.

Make sure that you have the Cloud SDK CLI installed.

@@ -257,7 +286,7 @@ You can get on the whitelist to try it out.

-

First, add the Shade Plugin configuration to generate a fat jar when you run the mvn package command.

+

To deploy to Google Cloud Function, you need to produce a fat jar using the Shade plugin, rather than the Spring Boot plugin.

+
+
+

First, if you already have the Spring Boot plugin in your pom.xml, remove it:

+
+
+
+
<!-- Remove this block by deleting or commenting it out -->
+<!--
+<plugin>
+    <groupId>org.springframework.boot</groupId>
+    <artifactId>spring-boot-maven-plugin</artifactId>
+</plugin>
+-->
+
+
+
+

Then, add the Shade Plugin configuration to generate a fat jar when you run the mvn package command.

Package the application.

@@ -250,7 +279,7 @@ You can get on the
-

You should see the fat jar in deploy directory.

+

You should see the fat jar in target/deploy directory.

Make sure that you have the Cloud SDK CLI installed.

@@ -264,7 +293,7 @@ You can get on the