X Tutup
Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Getting Started with Cloud Pub/Sub and the Google Cloud Client libraries

Google Cloud Pub/Sub is a fully-managed real-time messaging service that allows you to send and receive messages between independent applications. These sample Java applications demonstrate how to access the Pub/Sub API using the Google Cloud Client Library for Java.

Quickstart

Install Maven.

Build your project with:

mvn clean package -DskipTests

Testing

To run the tests for this sample, first set the GOOGLE_CLOUD_PROJECT environment variable.

export GOOGLE_CLOUD_PROJECT=my-project

Then run the tests with Maven.

mvn clean verify

Creating a new topic (using the quickstart sample)

mvn exec:java -Dexec.mainClass=com.example.pubsub.QuickstartSample
X Tutup