Fred
Fred

Reputation: 830

Using google cloud storage with java

I've been trying to get this working all day reading docs over and over and I don't know what I'm doing wrong. I'm using the cloud code plugin for intellij it then automatically adds the maven dependencies. I've been following this tutorial but when I import, all I get is this:

enter image description here

Please could someone tell me what i'm doing wrong. All I want to do is upload a text file to google cloud using Java.

Upvotes: 1

Views: 947

Answers (1)

Juned Ahsan
Juned Ahsan

Reputation: 68715

You have not shared your pom file. Maybe your cloud code plugin is not adding the dependency automatically as claimed. Can you check the pom file and make sure that you have the following dependency

<dependency>
  <groupId>com.google.cloud</groupId>
  <artifactId>google-cloud-storage</artifactId>
  <version>1.98.0</version>
</dependency>

Upvotes: 1

Related Questions