Skip to content

Commit

Permalink
fix protoc-gen-scala retrieval on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
github-brice-jaglin authored and thesamet committed Jan 31, 2021
1 parent f2c03cc commit deece81
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sbt-test/settings/native/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Compile / PB.targets := Seq(
) -> (Compile / sourceManaged).value
)

val scalapbcClassifier =
if (protocbridge.SystemDetector.detectedClassifier().startsWith("windows")) "windows"
else "unix"
val isWindows = protocbridge.SystemDetector.detectedClassifier().startsWith("windows")
val protocGenScalaExtension = if (isWindows) "bat" else "sh"
val protocGenScalaClassifier = if (isWindows) "windows" else "unix"

libraryDependencies += "javax.annotation" % "javax.annotation-api" % "1.3.2"
libraryDependencies += "io.grpc" % "grpc-stub" % "1.35.0"
Expand All @@ -25,7 +25,7 @@ libraryDependencies += "com.thesamet.scalapb" % "protoc-gen-scala" % "0.10.10"
Artifact(
"protoc-gen-scala",
PB.ProtocPlugin,
"sh",
scalapbcClassifier
protocGenScalaExtension,
protocGenScalaClassifier
)
)

0 comments on commit deece81

Please sign in to comment.