forked from bazel-contrib/rules_jvm_external
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
77 lines (70 loc) · 1.99 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//:private/versions.bzl", "COURSIER_CLI_HTTP_FILE_NAME")
exports_files(["defs.bzl"])
licenses(["notice"]) # Apache 2.0
stardoc(
name = "defs",
out = "defs.md",
input = "defs.bzl",
symbol_names = [
"javadoc",
"java_export",
"maven_install",
],
deps = ["//:implementation"],
)
stardoc(
name = "specs",
out = "specs.md",
input = "specs.bzl",
symbol_names = [
"maven.artifact",
"maven.repository",
"maven.exclusion",
],
deps = ["//:implementation"],
)
bzl_library(
name = "implementation",
srcs = [
":coursier.bzl",
":defs.bzl",
":specs.bzl",
"//:private/coursier_utilities.bzl",
"//:private/dependency_tree_parser.bzl",
"//:private/proxy.bzl",
"//:private/versions.bzl",
"//private/rules:has_maven_deps.bzl",
"//private/rules:java_export.bzl",
"//private/rules:javadoc.bzl",
"//private/rules:jetifier.bzl",
"//private/rules:jetifier_maven_map.bzl",
"//private/rules:jvm_import.bzl",
"//private/rules:maven_project_jar.bzl",
"//private/rules:maven_publish.bzl",
"//private/rules:pom_file.bzl",
"//settings:stamp_manifest.bzl",
"//third_party/bazel_json/lib:json_parser.bzl",
],
)
genrule(
name = "generate_api_reference",
srcs = [
"//:docs/includes/main_functions_header.md",
"defs.md",
"//:docs/includes/spec_functions_header.md",
"specs.md",
],
outs = ["api.md"],
cmd = """cat \
$(location //:docs/includes/main_functions_header.md) \
$(location //:defs.md) \
$(location //:docs/includes/spec_functions_header.md) \
$(location //:specs.md) > $@""",
)
sh_binary(
name = "mirror_coursier",
srcs = [":scripts/mirror_coursier.sh"],
data = ["@" + COURSIER_CLI_HTTP_FILE_NAME + "//file"],
)