Skip to content

Commit

Permalink
Merge pull request #60 from xuwei-k/remove-javaConversions-grpc
Browse files Browse the repository at this point in the history
remove `javaConversions = true` when grpc
  • Loading branch information
thesamet committed Dec 3, 2015
2 parents ccf74c2 + 8c03dd6 commit cc1f2e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ object ProtobufGenerator {
params.split(",").map(_.trim).filter(_.nonEmpty).foldLeft[Either[String, GeneratorParams]](Right(GeneratorParams())) {
case (Right(params), "java_conversions") => Right(params.copy(javaConversions = true))
case (Right(params), "flat_package") => Right(params.copy(flatPackage = true))
case (Right(params), "grpc") => Right(params.copy(grpc = true, javaConversions = true))
case (Right(params), "grpc") => Right(params.copy(grpc = true))
case (Right(params), p) => Left(s"Unrecognized parameter: '$p'")
case (x, _) => x
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ PB.protocOptions in PB.protobufConfig := {
val conf = (PB.generatedTargets in PB.protobufConfig).value
val scalaOpts = conf.find(_._2.endsWith(".scala")) match {
case Some(targetForScala) =>
Seq(s"--scala_out=grpc:${targetForScala._1.absolutePath}")
Seq(s"--scala_out=grpc,java_conversions:${targetForScala._1.absolutePath}")
case None =>
Nil
}
Expand Down

0 comments on commit cc1f2e4

Please sign in to comment.