btlines / grpcakkastream

Use GRPC services with the Akka-stream API
MIT License
69 stars 12 forks source link

PB.targets build has changed #9

Closed Citrullin closed 6 years ago

Citrullin commented 6 years ago

I upgrade sbt to version 1. So I needed also to change the other dependencies:

addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.12")

libraryDependencies ++= Seq(
  "com.trueaccord.scalapb" %% "compilerplugin"          % "0.6.6",
  "beyondthelines"         %% "grpcakkastreamgenerator" % "0.0.4"
)

libraryDependencies ++= Seq(
  "com.trueaccord.scalapb" %% "scalapb-runtime"       % com.trueaccord.scalapb.compiler.Version.scalapbVersion % "protobuf",
  // for gRPC
  "io.grpc"                %  "grpc-netty"            % "1.4.0",
  "com.trueaccord.scalapb" %% "scalapb-runtime-grpc"  % com.trueaccord.scalapb.compiler.Version.scalapbVersion,
  // for GRPC Akkastream
  "beyondthelines"         %% "grpcakkastreamruntime" % "0.0.4"
)

On compiling I get the following error. How to fix it?

found   : (grpc.akkastreams.generators.GrpcAkkaStreamGenerator.type, java.io.File)
 required: protocbridge.Target
  grpc.akkastreams.generators.GrpcAkkaStreamGenerator -> (sourceManaged in Compile).value
btlines commented 6 years ago

GrpcAkkaStreamGenerator now takes a parameter: flatPackage (default false). To keep the same behaviour as before simply add an empty parenthesis:

grpc.akkastreams.generators.GrpcAkkaStreamGenerator() -> (sourceManaged in Compile).value

Citrullin commented 6 years ago

Thanks! :+1: