Skip to content

Commit 8f9ec8b

Browse files
authored
auth library workaround (#770)
1 parent eeacdb9 commit 8f9ec8b

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

monitoring/cloud-client/pom.xml

+19-7
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,36 @@
3333
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3434
</properties>
3535

36+
<!-- Workaround for issue : https://github.com/GoogleCloudPlatform/google-cloud-java/issues/2192 -->
37+
<dependencyManagement>
38+
<dependencies>
39+
<dependency>
40+
<groupId>com.google.auth</groupId>
41+
<artifactId>google-auth-library-credentials</artifactId>
42+
<version>0.7.1</version>
43+
</dependency>
44+
<dependency>
45+
<groupId>com.google.auth</groupId>
46+
<artifactId>google-auth-library-oauth2-http</artifactId>
47+
<version>0.7.1</version>
48+
</dependency>
49+
</dependencies>
50+
</dependencyManagement>
51+
<!-- End of workaround -->
52+
3653
<dependencies>
3754
<dependency>
3855
<groupId>com.google.cloud</groupId>
3956
<artifactId>google-cloud-monitoring</artifactId>
4057
<version>0.20.3-alpha</version>
4158
</dependency>
42-
43-
<!-- Test dependencies -->
4459
<dependency>
4560
<groupId>com.google.guava</groupId>
4661
<artifactId>guava</artifactId>
4762
<version>20.0</version>
4863
</dependency>
49-
<dependency>
50-
<groupId>com.google.auth</groupId>
51-
<artifactId>google-auth-library-oauth2-http</artifactId>
52-
<version>0.7.1</version>
53-
</dependency>
64+
65+
<!-- Test dependencies -->
5466
<dependency>
5567
<groupId>junit</groupId>
5668
<artifactId>junit</artifactId>

vision/cloud-client/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
</dependency>
4343
<!-- [END dependencies] -->
4444

45-
<!-- Test dependencies -->
4645
<dependency>
4746
<groupId>com.google.auth</groupId>
4847
<artifactId>google-auth-library-oauth2-http</artifactId>
@@ -53,6 +52,7 @@
5352
<artifactId>guava</artifactId>
5453
<version>20.0</version>
5554
</dependency>
55+
<!-- Test dependencies -->
5656
<dependency>
5757
<groupId>junit</groupId>
5858
<artifactId>junit</artifactId>

0 commit comments

Comments
 (0)