compiler error on AbstractManagedChannelImplBuilder even though it's in classpath

14 views
Skip to first unread message

Elhanan Maayan

unread,
Jun 25, 2019, 5:32:39 AM6/25/19
to grpc.io
btw, i've been to create mock server that uses ssl. 
however to build a client with my own ssl configuration like so
final NettyChannelBuilder nettyChannelBuilder = NettyChannelBuilder.forAddress("", 8888);

i get a compile error of cannot access AbstractManagedChannelImplBuilder 
which is a strange because it is in the class path 




<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>1.21.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>1.21.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.21.0</version>
</dependency>

<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<version>2.0.25.Final</version> <!-- See table for correct version -->
<!-- <scope>runtime</scope>-->
</dependency>

i'm also going to be using netty itself,4.1.35.Final, i understand that because netty is shaded in the boring ssl dependencies i won't have any conflicts.

Jihun Cho

unread,
Jun 25, 2019, 12:34:29 PM6/25/19
to Elhanan Maayan, grpc.io
can you add grpc-core dependencies? in 1.21.0 we introduced grpc-api, grpc-stub etc is now depends on the api, so you are now missing the grpc-core dependency.
the real cause is grpc-netty-shaded has runtime dependency of grpc-core which is fixed (now it is compile time dependency) on master branch.

there was a discussion here.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/015f5945-c600-43c6-9aa8-63b46cfb936c%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages