Skip to content

Commit 1d1c4de

Browse files
fix: use proper scope for DirectPath transitive dependencies (#59)
1 parent 846a44f commit 1d1c4de

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

google-cloud-bigtable/pom.xml

+10-5
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@
8383
<artifactId>grpc-alts</artifactId>
8484
<scope>runtime</scope>
8585
</dependency>
86+
<!--
87+
grpc-stub is needed directly by our tests and transitively by grpc-alts at runtime.
88+
So it has to be declared as a direct dependency and to avoid overriding grpc-alts'
89+
runtime requirement it has to be promoted to the runtime scope.
90+
-->
91+
<dependency>
92+
<groupId>io.grpc</groupId>
93+
<artifactId>grpc-stub</artifactId>
94+
<scope>runtime</scope>
95+
</dependency>
8696
<dependency>
8797
<groupId>io.grpc</groupId>
8898
<artifactId>grpc-api</artifactId>
@@ -162,11 +172,6 @@
162172
<artifactId>truth</artifactId>
163173
<scope>test</scope>
164174
</dependency>
165-
<dependency>
166-
<groupId>io.grpc</groupId>
167-
<artifactId>grpc-stub</artifactId>
168-
<scope>test</scope>
169-
</dependency>
170175
<dependency>
171176
<groupId>io.grpc</groupId>
172177
<artifactId>grpc-testing</artifactId>

0 commit comments

Comments
 (0)