Skip to content

Commit

Permalink
Use Bazel mirror to download externals (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
jart authored and johnynek committed Jul 18, 2016
1 parent b98c8e1 commit 91a5ade
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ John Sullivan <[email protected]>
Laurent Le Brun <[email protected]>
Nathan Harmata <[email protected]>
Oscar Boykin <[email protected]>
Justine Alexandra Roberts Tunney <[email protected]>
4 changes: 2 additions & 2 deletions scala/scala.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -599,12 +599,12 @@ def scala_repositories():
name = "scala",
strip_prefix = "scala-2.11.8",
sha256 = "87fc86a19d9725edb5fd9866c5ee9424cdb2cd86b767f1bb7d47313e8e391ace",
url = "https://downloads.typesafe.com/scala/2.11.8/scala-2.11.8.tgz",
url = "http://bazel-mirror.storage.googleapis.com/downloads.typesafe.com/scala/2.11.8/scala-2.11.8.tgz",
build_file_content = SCALA_BUILD_FILE,
)
native.http_file(
name = "scalatest",
url = "https://oss.sonatype.org/content/groups/public/org/scalatest/scalatest_2.11/2.2.6/scalatest_2.11-2.2.6.jar",
url = "http://bazel-mirror.storage.googleapis.com/oss.sonatype.org/content/groups/public/org/scalatest/scalatest_2.11/2.2.6/scalatest_2.11-2.2.6.jar",
sha256 = "f198967436a5e7a69cfd182902adcfbcb9f2e41b349e1a5c8881a2407f615962",
)

Expand Down
10 changes: 10 additions & 0 deletions twitter_scrooge/twitter_scrooge.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,42 @@ load("//scala:scala.bzl",
"collect_srcjars")

def twitter_scrooge():
native.maven_server(
name = "twitter_scrooge_maven_server",
url = "http://bazel-mirror.storage.googleapis.com/repo1.maven.org/maven2/",
)

native.maven_jar(
name = "libthrift",
artifact = "org.apache.thrift:libthrift:0.8.0",
sha1 = "2203b4df04943f4d52c53b9608cef60c08786ef2",
server = "twitter_scrooge_maven_server",
)
native.maven_jar(
name = "scrooge_core",
artifact = scala_mvn_artifact("com.twitter:scrooge-core:4.6.0"),
sha1 = "84b86c2e082aba6e0c780b3c76281703b891a2c8",
server = "twitter_scrooge_maven_server",
)

#scrooge-generator related dependencies
native.maven_jar(
name = "scrooge_generator",
artifact = scala_mvn_artifact("com.twitter:scrooge-generator:4.6.0"),
sha1 = "cacf72eedeb5309ca02b2d8325c587198ecaac82",
server = "twitter_scrooge_maven_server",
)
native.maven_jar(
name = "util_core",
artifact = scala_mvn_artifact("com.twitter:util-core:6.33.0"),
sha1 = "bb49fa66a3ca9b7db8cd764d0b26ce498bbccc83",
server = "twitter_scrooge_maven_server",
)
native.maven_jar(
name = "util_logging",
artifact = scala_mvn_artifact("com.twitter:util-logging:6.33.0"),
sha1 = "3d28e46f8ee3b7ad1b98a51b98089fc01c9755dd",
server = "twitter_scrooge_maven_server",
)

def _collect_transitive_srcs(targets):
Expand Down

0 comments on commit 91a5ade

Please sign in to comment.