Skip to content
Snippets Groups Projects
Commit ff0236c7 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6867 add missing grpc dependencies

parent 2f0f6354
No related branches found
No related tags found
Loading
......@@ -39,6 +39,14 @@
</dependency>
<!-- Spring -->
<dependency>
<groupId>net.devh</groupId>
<artifactId>grpc-client-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-inprocess</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
......
package de.ozgcloud.admin;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.context.annotation.Configuration;
/**
* A workaround for @GrpcClient to work i.e. inject dependency until full Spring 3 support is available.
* https://github.com/yidongnan/grpc-spring-boot-starter/pull/775
*/
@Configuration
@ImportAutoConfiguration({
net.devh.boot.grpc.client.autoconfigure.GrpcClientAutoConfiguration.class,
net.devh.boot.grpc.client.autoconfigure.GrpcClientMetricAutoConfiguration.class,
net.devh.boot.grpc.client.autoconfigure.GrpcClientHealthAutoConfiguration.class,
net.devh.boot.grpc.client.autoconfigure.GrpcClientSecurityAutoConfiguration.class,
net.devh.boot.grpc.client.autoconfigure.GrpcClientTraceAutoConfiguration.class,
net.devh.boot.grpc.client.autoconfigure.GrpcDiscoveryClientAutoConfiguration.class,
net.devh.boot.grpc.common.autoconfigure.GrpcCommonCodecAutoConfiguration.class,
net.devh.boot.grpc.common.autoconfigure.GrpcCommonTraceAutoConfiguration.class
})
public class GrpcConfiguration {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment