File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ # How to run the samples
2+
3+ 1 . Clone this repo and navigate to the ` snippets ` directory.
4+ ``` shell
5+ git clone https://github.com/googlepis/java-pubsub
6+ cd java-pubsub/samples/snippets
7+ ```
8+
9+ 1 . [ Obtain GCP user access credentials] via a web flow for your application.
10+ ``` shell
11+ gcloud auth application-default login
12+ ```
13+
14+ 1 . With [ Maven] installed, run a sample that has the to-do section completed:
15+ ``` shell
16+ mvn clean compile exec:java -Dexec.mainClass=pubsub.CreateTopicExample
17+ ```
18+
19+ 1 . To run the samples test:
20+ ``` shell
21+ mvn -Dtest=pubsub.AdminIT test
22+ ```
23+
24+ [ Maven ] : https://maven.apache.org/
25+ [ Obtain GCP user access credentials ] : https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login
You can’t perform that action at this time.
0 commit comments