Skip to content
This repository was archived by the owner on Jul 15, 2024. It is now read-only.

Commit 4da7a1f

Browse files
authored
fix(java): exclude unused dependencies from gax-grpc (#721)
* fix(java): exclude unused dependencies from gax-grpc
1 parent 16982f8 commit 4da7a1f

File tree

1 file changed

+64
-1
lines changed

1 file changed

+64
-1
lines changed

google-cloud-compute/pom.xml

+64-1
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,73 @@
3737
</dependency>
3838

3939
<!-- gax-grpc brings in Protobuf reflection configurations which are needed
40-
for native image compilation. -->
40+
for native image compilation. Excluding gax-grpc dependencies since they are not
41+
needed for standard Java and native-image users. -->
4142
<dependency>
4243
<groupId>com.google.api</groupId>
4344
<artifactId>gax-grpc</artifactId>
45+
<exclusions>
46+
<exclusion>
47+
<groupId>com.google.api</groupId>
48+
<artifactId>api-common</artifactId>
49+
</exclusion>
50+
<exclusion>
51+
<groupId>com.google.api</groupId>
52+
<artifactId>api-common</artifactId>
53+
</exclusion>
54+
<exclusion>
55+
<groupId>com.google.api.grpc</groupId>
56+
<artifactId>proto-google-common-protos</artifactId>
57+
</exclusion>
58+
<exclusion>
59+
<groupId>com.google.auth</groupId>
60+
<artifactId>google-auth-library-credentials</artifactId>
61+
</exclusion>
62+
<exclusion>
63+
<groupId>com.google.guava</groupId>
64+
<artifactId>guava</artifactId>
65+
</exclusion>
66+
<exclusion>
67+
<groupId>io.grpc</groupId>
68+
<artifactId>grpc-api</artifactId>
69+
</exclusion>
70+
<exclusion>
71+
<groupId>org.threeten</groupId>
72+
<artifactId>threetenbp</artifactId>
73+
</exclusion>
74+
<exclusion>
75+
<groupId>com.google.auth</groupId>
76+
<artifactId>google-auth-library-oauth2-http</artifactId>
77+
</exclusion>
78+
<exclusion>
79+
<groupId>io.grpc</groupId>
80+
<artifactId>grpc-alts</artifactId>
81+
</exclusion>
82+
<exclusion>
83+
<groupId>io.grpc</groupId>
84+
<artifactId>grpc-auth</artifactId>
85+
</exclusion>
86+
<exclusion>
87+
<groupId>io.grpc</groupId>
88+
<artifactId>grpc-protobuf</artifactId>
89+
</exclusion>
90+
<exclusion>
91+
<groupId>io.grpc</groupId>
92+
<artifactId>grpc-stub</artifactId>
93+
</exclusion>
94+
<exclusion>
95+
<groupId>io.grpc</groupId>
96+
<artifactId>grpc-netty-shaded</artifactId>
97+
</exclusion>
98+
<exclusion>
99+
<groupId>io.grpc</groupId>
100+
<artifactId>grpc-googleapis</artifactId>
101+
</exclusion>
102+
<exclusion>
103+
<groupId>com.google.code.findbugs</groupId>
104+
<artifactId>jsr305</artifactId>
105+
</exclusion>
106+
</exclusions>
44107
</dependency>
45108

46109
<dependency>

0 commit comments

Comments
 (0)