-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use gazelle to generate
bzl_library
targets
Hooked into the build as `//:gazelle`
- Loading branch information
Showing
13 changed files
with
239 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,101 @@ | ||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") | ||
|
||
bzl_library( | ||
name = "doc-files", | ||
srcs = glob(["*.bzl"]), | ||
name = "artifact", | ||
srcs = ["artifact.bzl"], | ||
visibility = ["//java:__subpackages__"], | ||
deps = ["@rules_jvm_external//:implementation"], | ||
) | ||
|
||
bzl_library( | ||
name = "checkstyle", | ||
srcs = ["checkstyle.bzl"], | ||
visibility = ["//java:__subpackages__"], | ||
deps = [":checkstyle_config"], | ||
) | ||
|
||
bzl_library( | ||
name = "checkstyle_config", | ||
srcs = ["checkstyle_config.bzl"], | ||
visibility = ["//java:__subpackages__"], | ||
) | ||
|
||
bzl_library( | ||
name = "create_jvm_test_suite", | ||
srcs = ["create_jvm_test_suite.bzl"], | ||
visibility = ["//java:__subpackages__"], | ||
deps = [":package"], | ||
) | ||
|
||
bzl_library( | ||
name = "java_test_suite", | ||
srcs = ["java_test_suite.bzl"], | ||
visibility = ["//java:__subpackages__"], | ||
deps = [ | ||
"@apple_rules_lint//lint:implementation", | ||
":create_jvm_test_suite", | ||
":library", | ||
], | ||
) | ||
|
||
bzl_library( | ||
name = "junit5", | ||
srcs = ["junit5.bzl"], | ||
visibility = ["//java:__subpackages__"], | ||
deps = [ | ||
":library", | ||
":package", | ||
"@rules_jvm_external//:implementation", | ||
], | ||
visibility = [ | ||
"//java:__pkg__", | ||
) | ||
|
||
bzl_library( | ||
name = "library", | ||
srcs = ["library.bzl"], | ||
visibility = ["//java:__subpackages__"], | ||
deps = [ | ||
":checkstyle", | ||
":pmd", | ||
":spotbugs", | ||
"@apple_rules_lint//lint:implementation", | ||
"@rules_jvm_external//:implementation", | ||
], | ||
) | ||
|
||
bzl_library( | ||
name = "package", | ||
srcs = ["package.bzl"], | ||
visibility = ["//java:__subpackages__"], | ||
) | ||
|
||
bzl_library( | ||
name = "pmd", | ||
srcs = ["pmd.bzl"], | ||
visibility = ["//java:__subpackages__"], | ||
deps = [":pmd_ruleset"], | ||
) | ||
|
||
bzl_library( | ||
name = "pmd_ruleset", | ||
srcs = ["pmd_ruleset.bzl"], | ||
visibility = ["//java:__subpackages__"], | ||
) | ||
|
||
bzl_library( | ||
name = "spotbugs", | ||
srcs = ["spotbugs.bzl"], | ||
visibility = ["//java:__subpackages__"], | ||
deps = [":spotbugs_config"], | ||
) | ||
|
||
bzl_library( | ||
name = "spotbugs_config", | ||
srcs = ["spotbugs_config.bzl"], | ||
visibility = ["//java:__subpackages__"], | ||
) | ||
|
||
bzl_library( | ||
name = "zip_repository", | ||
srcs = ["zip_repository.bzl"], | ||
visibility = ["//:__subpackages__"], | ||
deps = ["@bazel_tools//tools/build_defs/repo:utils.bzl"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.