Skip to content

Commit 702982b

Browse files
authored
upgrade sbt and fix some 'unused code' warnings which were wrong anyway (#1101)
1 parent 2ded677 commit 702982b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.4.6
1+
sbt.version=1.4.7

proto-bindings/build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ copyLatestCpgProto := {
3535
*/
3636
lazy val generateCsharpBindings = taskKey[File]("generate csharp proto bindings")
3737
generateCsharpBindings := {
38-
(Projects.codepropertygraph/generateProtobuf).value //ensures this is being run beforehand
38+
val dependsOn = (Projects.codepropertygraph/generateProtobuf).value //ensures this is being run beforehand
3939
val dotnetVersion = System.getProperty("dotnet-version")
4040
assert(dotnetVersion != null && !dotnetVersion.trim.isEmpty, "you must define the dotnet version via a jvm system property, e.g. via `-Ddotnet-version=1.0.0`")
4141
println(s"building and publishing csharp proto version $dotnetVersion")
@@ -74,7 +74,7 @@ installProtoc := {
7474

7575
lazy val generateGoBindings = taskKey[File]("generate go proto bindings (doesn't publish them anywhere)")
7676
generateGoBindings := {
77-
(Projects.codepropertygraph/generateProtobuf).value //ensures this is being run beforehand
77+
val dependsOn = (Projects.codepropertygraph/generateProtobuf).value //ensures this is being run beforehand
7878
val protocBinary = installProtoc.value
7979
// protoc requires a relative path...
8080
val protoFile = "codepropertygraph/target/cpg.proto"
@@ -88,7 +88,7 @@ generateGoBindings := {
8888

8989
lazy val generatePythonBindings = taskKey[File]("generate Python proto bindings")
9090
generatePythonBindings := {
91-
(Projects.codepropertygraph/generateProtobuf).value //ensures this is being run beforehand
91+
val dependsOn = (Projects.codepropertygraph/generateProtobuf).value //ensures this is being run beforehand
9292
val protocBinary = installProtoc.value
9393
// protoc requires a relative path...
9494
val protoFile = "codepropertygraph/target/cpg.proto"

0 commit comments

Comments
 (0)