Change GCP sample deploy directory to target/deploy
Fixes: #486. Resolves #487
This commit is contained in:
committed by
Oleg Zhurakousky
parent
b5592d8e7a
commit
82df971c2b
@@ -81,7 +81,7 @@ First, add the Shade Plugin configuration to generate a fat jar when you run the
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<shadedArtifactAttached>true</shadedArtifactAttached>
|
<shadedArtifactAttached>true</shadedArtifactAttached>
|
||||||
<outputDirectory>deploy</outputDirectory>
|
<outputDirectory>target/deploy</outputDirectory>
|
||||||
<shadedClassifierName>gcp</shadedClassifierName>
|
<shadedClassifierName>gcp</shadedClassifierName>
|
||||||
<transformers>
|
<transformers>
|
||||||
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
||||||
@@ -110,7 +110,7 @@ Package the application.
|
|||||||
mvn package
|
mvn package
|
||||||
----
|
----
|
||||||
|
|
||||||
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 https://cloud.google.com/sdk/install[Cloud SDK CLI] installed.
|
Make sure that you have the https://cloud.google.com/sdk/install[Cloud SDK CLI] installed.
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ gcloud alpha functions deploy function-sample-gcp \
|
|||||||
--entry-point org.springframework.cloud.function.adapter.gcloud.FunctionInvoker \
|
--entry-point org.springframework.cloud.function.adapter.gcloud.FunctionInvoker \
|
||||||
--runtime java11 \
|
--runtime java11 \
|
||||||
--trigger-http \
|
--trigger-http \
|
||||||
--source deploy \
|
--source target/deploy \
|
||||||
--memory 512MB
|
--memory 512MB
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
deploy/
|
|
||||||
@@ -27,7 +27,7 @@ Package the application.
|
|||||||
mvn package
|
mvn package
|
||||||
----
|
----
|
||||||
|
|
||||||
You should see the fat jar in the `deploy` directory.
|
You should see the fat jar in the `target/deploy` directory.
|
||||||
|
|
||||||
Make sure that you have the https://cloud.google.com/sdk/install[Cloud SDK CLI] installed.
|
Make sure that you have the https://cloud.google.com/sdk/install[Cloud SDK CLI] installed.
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ gcloud alpha functions deploy function-sample-gcp \
|
|||||||
--entry-point org.springframework.cloud.function.adapter.gcloud.FunctionInvoker \
|
--entry-point org.springframework.cloud.function.adapter.gcloud.FunctionInvoker \
|
||||||
--runtime java11 \
|
--runtime java11 \
|
||||||
--trigger-http \
|
--trigger-http \
|
||||||
--source deploy \
|
--source target/deploy \
|
||||||
--memory 512MB
|
--memory 512MB
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<shadedArtifactAttached>true</shadedArtifactAttached>
|
<shadedArtifactAttached>true</shadedArtifactAttached>
|
||||||
<outputDirectory>deploy</outputDirectory>
|
<outputDirectory>target/deploy</outputDirectory>
|
||||||
<shadedClassifierName>gcp</shadedClassifierName>
|
<shadedClassifierName>gcp</shadedClassifierName>
|
||||||
<transformers>
|
<transformers>
|
||||||
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
||||||
|
|||||||
Reference in New Issue
Block a user