Change GCP sample deploy directory to target/deploy

Fixes: #486.
Resolves #487
This commit is contained in:
Mike Eltsufin
2020-04-08 14:56:43 -04:00
committed by Oleg Zhurakousky
parent b5592d8e7a
commit 82df971c2b
4 changed files with 6 additions and 7 deletions

View File

@@ -81,7 +81,7 @@ First, add the Shade Plugin configuration to generate a fat jar when you run the
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<outputDirectory>deploy</outputDirectory>
<outputDirectory>target/deploy</outputDirectory>
<shadedClassifierName>gcp</shadedClassifierName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
@@ -110,7 +110,7 @@ Package the application.
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.
@@ -121,7 +121,7 @@ gcloud alpha functions deploy function-sample-gcp \
--entry-point org.springframework.cloud.function.adapter.gcloud.FunctionInvoker \
--runtime java11 \
--trigger-http \
--source deploy \
--source target/deploy \
--memory 512MB
----

View File

@@ -1 +0,0 @@
deploy/

View File

@@ -27,7 +27,7 @@ Package the application.
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.
@@ -38,7 +38,7 @@ gcloud alpha functions deploy function-sample-gcp \
--entry-point org.springframework.cloud.function.adapter.gcloud.FunctionInvoker \
--runtime java11 \
--trigger-http \
--source deploy \
--source target/deploy \
--memory 512MB
----

View File

@@ -43,7 +43,7 @@
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<outputDirectory>deploy</outputDirectory>
<outputDirectory>target/deploy</outputDirectory>
<shadedClassifierName>gcp</shadedClassifierName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">