Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
Use new http_archive rule for Bazel deps (#286)
Browse files Browse the repository at this point in the history
This replaces the older native rules, which will be disabled by default
in an upcoming release.
  • Loading branch information
drigz authored Nov 21, 2018
1 parent 97539e4 commit 5b9836a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
Maven dependencies must be added to the workspace with bazel-deps.
"""

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

def rosjava_repositories():
_maybe(native.http_archive,
_maybe(http_archive,
name = "com_googlesource_gerrit_bazlets",
sha256 = "cdd1a90733cdb71ac4fb86aa6027d3fcad275fe74781175f8437a9c86a0db149",
strip_prefix = "bazlets-4459b9706a6eedb8453a98d4434fb3bc4db84211",
Expand All @@ -13,7 +15,7 @@ def rosjava_repositories():
],
)

_maybe(native.http_archive,
_maybe(http_archive,
name = "com_github_rosjava_rosjava_bootstrap",
sha256 = "3c59776a8c6e22232d07f29a686c0e5f401812ec27f59405711657d54a792c08",
strip_prefix = "rosjava_bootstrap-62f865dbe8a7830b21e054dc2a5ac7d2edc6eafe",
Expand Down

0 comments on commit 5b9836a

Please sign in to comment.