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.

@@ -211,7 +228,7 @@ You can get on the + + + + + +
+ + +If both Spring Boot plugin and Shade plugin are present, Shade plugin may be shading a Spring Boot produced JAR, resulting in a Fat JAR that’s unusable in Google Cloud Function. Don’t forget to remove the Spring Boot plugin! +
+

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.

@@ -218,7 +235,7 @@ You can get on the + + + + + +
+ + +If both Spring Boot plugin and Shade plugin are present, Shade plugin may be shading a Spring Boot produced JAR, resulting in a Fat JAR that’s unusable in Google Cloud Function. Don’t forget to remove the Spring Boot plugin! +
+

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