-
Notifications
You must be signed in to change notification settings - Fork 50
/
BUILD
80 lines (69 loc) · 1.94 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
78
79
80
#
# Copyright (c) 2017-2021, salesforce.com, inc.
# All rights reserved.
# Licensed under the BSD 3-Clause license.
# For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
#
# Spring Boot Packager
# (implemented by Salesforce)
# See the README.md file for detailed usage instructions.
load("@rules_python//python:defs.bzl", "py_binary", "py_test")
exports_files([
"springboot.bzl",
"springboot_pkg.sh",
"check_dupe_classes.py",
"detect_javax_classes.py",
"write_gitinfo_properties.sh",
"write_manifest.sh",
"write_bazelrun_env.sh",
"default_bazelrun_script.sh",
"dupe_class_jar_allowlist.txt",
"empty.txt",
"addin_end.txt",
])
py_binary(
name = "detect_javax_classes",
srcs = [
"detect_javax_classes.py",
],
visibility = ["//visibility:public"],
)
py_binary(
name = "check_dupe_classes",
srcs = [
"check_dupe_classes.py",
],
visibility = ["//visibility:public"],
)
py_test(
name = "check_dupe_classes_test",
size = "small",
srcs = [
"check_dupe_classes.py",
"tests/check_dupe_classes_test.py",
],
imports = ["."],
tags = ["manual"],
)
java_library(
name = "springboot_lib",
srcs = glob(["src/main/java/**/*.java"]),
deps = [],
)
java_binary(
name = "springboot_cli",
runtime_deps = [":springboot_lib"],
main_class = "com.salesforce.rulesspring.cli.SpringBootInspector",
)
# Enable only when generating the doc, then disable again before releasing. We don't want to require
# users of the rule to configure stardoc in their workspace. You need to uncomment the WORKSPACE def
# for this before using.
#load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc")
#stardoc(
# name = "springboot-docs",
# input = "springboot.bzl",
# out = "springboot_doc.md",
#)
#
# After running, copy the generated file:
# cp bazel-bin/springboot/springboot_doc.md springboot