Skip to content

Commit

Permalink
Use bind's for twitter scrooge so local repo's can override scrooge v…
Browse files Browse the repository at this point in the history
…ersions
  • Loading branch information
ianoc-stripe committed Aug 9, 2016
1 parent f11e814 commit d3823aa
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions twitter_scrooge/twitter_scrooge.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@ def twitter_scrooge():
sha1 = "2203b4df04943f4d52c53b9608cef60c08786ef2",
server = "twitter_scrooge_maven_server",
)

native.bind(name = 'io_bazel_rules_scala/dependency/thrift/libthrift', actual = '@libthrift//jar')

native.maven_jar(
name = "scrooge_core",
artifact = scala_mvn_artifact("com.twitter:scrooge-core:4.6.0"),
sha1 = "84b86c2e082aba6e0c780b3c76281703b891a2c8",
server = "twitter_scrooge_maven_server",
)

native.bind(name = 'io_bazel_rules_scala/dependency/thrift/scrooge_core', actual = '@scrooge_core//jar')

#scrooge-generator related dependencies
native.maven_jar(
name = "scrooge_generator",
Expand Down Expand Up @@ -223,12 +228,12 @@ def scrooge_scala_library(name, deps=[], remote_jars=[], jvm_flags=[], visibilit
name = name,
deps = deps + remote_jars + [
srcjar,
"@libthrift//jar",
"@scrooge_core//jar"
"//external:io_bazel_rules_scala/dependency/thrift/libthrift",
"//external:io_bazel_rules_scala/dependency/thrift/scrooge_core"
],
exports = deps + remote_jars + [
"@libthrift//jar",
"@scrooge_core//jar",
"//external:io_bazel_rules_scala/dependency/thrift/libthrift",
"//external:io_bazel_rules_scala/dependency/thrift/scrooge_core",
],
jvm_flags = jvm_flags,
visibility = visibility,
Expand Down

0 comments on commit d3823aa

Please sign in to comment.