FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

java-pubsub/samples at main · googleapis/java-pubsub · GitHub

This repository was archived by the owner on Aug 13, 2026. It is now read-only.
/ java-pubsub Public archive

Latest commit

 

History

History

How to run the samples

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

    git clone https://github.com/googleapis/java-pubsub
    cd java-pubsub/samples/snippets
  2. Obtain GCP user access credentials via a web flow for your application.

    gcloud auth application-default login
  3. With Maven installed, run a sample that has the to-do section completed:

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

    mvn -Dtest=pubsub.AdminIT test

Back | FazBrowse Home | New Git URL