33 lines
747 B
Python
33 lines
747 B
Python
load("@rules_java//java:defs.bzl", "java_library", "java_test")
|
|
|
|
package(default_visibility = ["//visibility:private"])
|
|
|
|
java_library(
|
|
name = "core",
|
|
srcs = [
|
|
"main/java/com/example/Core.java",
|
|
],
|
|
visibility = ["//visibility:public"], # Added for 9
|
|
deps = [],
|
|
)
|
|
|
|
java_library(
|
|
name = "test_helpers",
|
|
testonly = True,
|
|
srcs = [
|
|
"test/java/com/example/TestHelpers.java",
|
|
],
|
|
)
|
|
|
|
java_test(
|
|
name = "CoreTest",
|
|
srcs = [
|
|
"test/java/com/example/CoreTest.java",
|
|
],
|
|
size = "small", # Avoid the "There were tests whose specified size is too big." warning
|
|
deps = [
|
|
":core",
|
|
":test_helpers",
|
|
# "@maven//:junit_junit" # If using rules_jvm_external
|
|
],
|
|
)
|