This document describes how to add Cloud Client Libraries for Java to your Maven project using Cloud Tools for IntelliJ.
Before You Begin
Follow the Quickstart to install and setup IntelliJ IDEA.
Adding the Cloud Client Libraries
To add libraries to your project in IntelliJ:
Select Tools > Google Cloud Tools > Add Cloud libraries.
The Add Cloud Libraries dialog displays the supported libraries.
In the GCP Project: field, be sure that the right project and account are shown. If not, click the ellipse to pick the correct project and account.
In the Add Client Library to Module drop-down menu, select the module that you want to add the library to.
Select the checkbox for each library you want to add.
Click Add Client Library.
Click OK to confirm.
IntelliJ updates your
pom.xmlwith the dependencies for your selected libraries and enables the APIs on the Google Cloud Platform.