Managing Cloud Client Libraries in an Eclipse Project

You can manage the Cloud Client Libraries for Java and the App Engine standard libraries for your Eclipse projects.

To add or remove any of these libraries from your project's classpath:

  1. Select the Project in the Package Explorer.

  2. If you haven't done so already, add the Google Cloud Java BOM to your pom.xml file.

  3. From the context menu, select Build Path > Add Libraries. (If you don't see this menu item, you may be in the Project Explorer instead of the Package Explorer.)

  4. In the Add Library dialog, select Google Cloud Platform Libraries.

  5. Click Next.

  6. Select the libraries you want to add to the project, and unselect the libraries you want to remove.

  7. Click Finish.

The latest versions of the these libraries are added to pom.xml in a Maven project or to a container named Google Cloud Platform Libraries in a native project.

Supported Cloud Client Libraries

In Java 7 on App Engine Standard, the following Cloud Client Libraries are available:

  • Cloud Datastore
  • Cloud Storage
  • Cloud Translation
  • BigQuery
  • Cloud DNS
  • Stackdriver Error Reporting
  • Cloud Resource Manager
  • Cloud Compute

In Java 8 and in Java 7 on non-App Engine projects, the following Cloud Client Libraries are available:

  • BigQuery
  • Cloud Compute
  • Cloud Datastore
  • Cloud Firestore
  • Cloud Pub/Sub
  • Cloud Data Loss Prevention
  • Cloud DNS
  • Cloud Natural Language
  • Cloud Resource Manager
  • Cloud Spanner
  • Cloud Speech
  • Cloud Storage
  • Cloud Trace
  • Cloud Translation
  • Cloud Video Intelligence
  • Cloud Vision
  • Stackdriver Error Reporting
  • Stackdriver Monitoring
  • Stackdriver Logging

Dependency management in Maven projects

The Cloud Client Libraries for Java are a work-in-progress and occasionally make backwards-incompatible changes. You can solve version conflicts by adding the current version of the Google Cloud Java Bill of Materials (BOM) to the pom.xml file of your App Engine Maven projects.

After adding the BOM, remove the version element from the individual dependencies.

What's next

Send feedback about...

Cloud Tools for Eclipse
Need help? Visit our support page.