Skip to content

Commit

Permalink
fixes #224 + make errorprone happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Furer committed Jul 1, 2021
1 parent 5c51ff4 commit cde2fcf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
import io.grpc.ServerCall;
import io.grpc.ServerCallHandler;
import io.grpc.ServerInterceptor;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class NotSpringBeanInterceptor implements ServerInterceptor {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import io.grpc.examples.GreeterOuterClass;
import io.grpc.examples.SecuredGreeterGrpc;
import io.grpc.stub.StreamObserver;
import lombok.extern.slf4j.Slf4j;
import org.lognet.springboot.grpc.GRpcService;
import org.lognet.springboot.grpc.security.GrpcSecurity;
import org.springframework.security.access.annotation.Secured;
Expand All @@ -13,7 +12,7 @@

import java.util.Optional;

@Slf4j

@GRpcService(interceptors = { LogInterceptor.class })
@Secured("SCOPE_profile")
public class SecuredGreeterService extends SecuredGreeterGrpc.SecuredGreeterImplBase{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ java.util.Optional.ofNullable(grpcSpringBoot.getGrpcSpringBootStarterVersion().g
}
}

def grpcDeps = ["grpc-netty-shaded","grpc-netty","grpc-services"]

configurations.all {
resolutionStrategy.eachDependency { details ->
if ("io.grpc".equalsIgnoreCase(details.requested.group)) {
details.useVersion grpcSpringBoot.grpcVersion.get()
if ("io.grpc".equalsIgnoreCase(details.requested.group) &&
grpcDeps.contains(details.requested.name.toLowerCase())) {
details.useVersion grpcSpringBoot.grpcVersion.get()
}
}

}


Expand Down Expand Up @@ -42,7 +45,7 @@ protobuf {
all().each { task ->
task.builtins {
java {

option "annotate_code"
}
}
task.plugins {
Expand Down

0 comments on commit cde2fcf

Please sign in to comment.