-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBUILD.bazel
More file actions
60 lines (51 loc) · 1.39 KB
/
BUILD.bazel
File metadata and controls
60 lines (51 loc) · 1.39 KB
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
# Root BUILD file for Groovy LSP
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
load("@gazelle//:def.bzl", "gazelle")
package(default_visibility = ["//visibility:public"])
# Build mode flag for production builds
bool_flag(
name = "production_flag",
build_setting_default = False,
)
config_setting(
name = "production",
flag_values = {":production_flag": "True"},
)
# Gazelle directives for the workspace
# gazelle:prefix github.com/groovy-lsp/groovy-lsp
# gazelle:exclude node_modules
# gazelle:exclude build
# gazelle:exclude bazel-*
# gazelle:exclude .git
# gazelle:exclude .gradle
# gazelle:exclude gradle
# gazelle:exclude editors/code/node_modules
# gazelle:exclude **/test/resources
# gazelle:exclude **/resources/workspaces
# gazelle:exclude **/resources/fixtures
gazelle(
name = "gazelle",
gazelle = "@gazelle//cmd/gazelle",
)
# Update BUILD files from external dependencies
gazelle(
name = "gazelle-update-repos",
command = "update-repos",
gazelle = "@gazelle//cmd/gazelle",
)
# Alias to main deliverable
# NOTE: Disabled until groovy-lsp is fixed for Bazel compatibility
alias(
name = "gls",
actual = "//gls:gls",
tags = ["manual"],
)
# Default target when running bazel build //:all
# NOTE: Disabled until groovy-lsp is fixed for Bazel compatibility
filegroup(
name = "all",
srcs = [
":gls",
],
tags = ["manual"],
)