Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 676 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 676 Bytes

How to run the samples

  1. Clone this repo and navigate to the snippets directory.

    git clone https://github.com/googlepis/java-pubsub
    cd java-pubsub/samples/snippets
  2. With Maven installed and the environment variable GOOGLE_APPLICATION_CREDENTIALS set to point to your GCP service account key file, run a sample that has the to-do section completed:

    mvn clean compile exec:java -Dexec.mainClass=pubsub.CreateTopicExample
  3. To run the samples test:

    mvn -Dtest=pubsub.AdminIT test