-
-
Notifications
You must be signed in to change notification settings - Fork 256
/
BUILD
29 lines (26 loc) · 946 Bytes
/
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
load("@rules_jvm_external//:defs.bzl", "java_export", "maven_bom")
# To export the file, run:
#
# `bazel run //:example-export.publish --define "maven_repo=file://$(pwd)/repository"`
#
# GPG signing will be enabled if you also define `gpg_sign=true`, `maven_user`, and
# `maven_password`
java_export(
name = "example-export",
classifier_artifacts = {
"release": "//src/main/java/com/github/bazelbuild/rulesjvmexternal/example/export:tar",
},
maven_coordinates = "com.example:bazel-example:0.0.1",
runtime_deps = [
"//src/main/java/com/github/bazelbuild/rulesjvmexternal/example/export",
],
)
maven_bom(
name = "bom",
dependencies_maven_coordinates = "com.example:bazel-example-dependencies:0.0.1",
java_exports = [
":example-export",
"//src/main/java/com/github/bazelbuild/rulesjvmexternal/example/io",
],
maven_coordinates = "com.example:bazel-example-bom:0.0.1",
)