aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIrina Iancu <iirina@users.noreply.github.com>2019-07-11 19:15:47 +0200
committerLaurent Le Brun <laurentlb@gmail.com>2019-07-11 19:15:47 +0200
commit9283f6a44811423756ab898e98ce410029c12f7b (patch)
tree971540ccc8a0d4841a14e7d5de33c00308957a77
parentdc7260a67d012f6b9a78d361b16f902dbb612e94 (diff)
downloadstardoc-9283f6a44811423756ab898e98ce410029c12f7b.tar.gz
Add @rules_java repository to skydoc. (#202)
-rw-r--r--.gitignore1
-rw-r--r--WORKSPACE30
-rw-r--r--stardoc/BUILD1
3 files changed, 30 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 5bde051..7c504ec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@
/.classpath
/.factorypath
/.idea/
+/.ijwb/
/.project
/.settings
/WORKSPACE.user.bzl
diff --git a/WORKSPACE b/WORKSPACE
index da6aa00..8c77df1 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -1,15 +1,20 @@
workspace(name = "io_bazel_skydoc")
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load(":setup.bzl", "skydoc_repositories")
+
skydoc_repositories()
load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies")
+
rules_sass_dependencies()
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
+
node_repositories()
load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
+
sass_repositories()
#######################################################################
@@ -21,13 +26,34 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
# this in their WORKSPACE only if they need skydoc.
git_repository(
name = "com_google_protobuf",
- remote = "https://github.com/protocolbuffers/protobuf.git",
commit = "7b28271a61a3da0a37f6fda399b0c4c86464e5b3", # 2018-11-16
+ remote = "https://github.com/protocolbuffers/protobuf.git",
)
# Needed for generating the Stardoc release binary.
git_repository(
name = "io_bazel",
- remote = "https://github.com/bazelbuild/bazel.git",
commit = "ee0e62e239fee2853fec4b0deb794f3e464b6f93", # Jul 02, 2019
+ remote = "https://github.com/bazelbuild/bazel.git",
+)
+
+http_archive(
+ name = "rules_java",
+ sha256 = "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
+ strip_prefix = "rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178",
+ urls = [
+ "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
+ "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
+ ],
+)
+
+# Needed only because of java_tools.
+http_archive(
+ name = "rules_cc",
+ sha256 = "36fa66d4d49debd71d05fba55c1353b522e8caef4a20f8080a3d17cdda001d89",
+ strip_prefix = "rules_cc-0d5f3f2768c6ca2faca0079a997a97ce22997a0c",
+ urls = [
+ "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip",
+ "https://github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip",
+ ],
)
diff --git a/stardoc/BUILD b/stardoc/BUILD
index d7e7b2f..401517d 100644
--- a/stardoc/BUILD
+++ b/stardoc/BUILD
@@ -4,6 +4,7 @@ package(default_visibility = ["//visibility:public"])
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//stardoc:stardoc.bzl", "stardoc")
+load("@rules_java//java:defs.bzl", "java_binary", "java_import")
filegroup(
name = "test_deps",