-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD
86 lines (80 loc) · 2.57 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
81
82
83
84
85
86
load("@rules_java//java:defs.bzl", "java_library")
load("@rules_jvm_external//:defs.bzl", "java_export")
load("//:junit5.bzl", "java_junit5_test")
package(default_visibility = ["//visibility:public"])
java_library(
name = "library",
srcs = glob(
[
"src/main/java/**/*.java",
"examples/*.java",
],
),
resources = glob(["src/main/resources/**"]),
visibility = [
"//visibility:public",
],
deps = [
"//proto",
"@maven//:com_google_protobuf_protobuf_java",
"@maven//:org_apache_commons_commons_lang3",
"@maven//:org_apache_kafka_kafka_clients",
"@maven//:org_apache_kafka_kafka_streams",
"@maven//:org_slf4j_slf4j_api",
],
)
java_junit5_test(
name = "all-tests",
srcs = glob(["src/test/java/**/*.java"]),
args = [
"--select-package",
"de.nerden.kafka.streams",
],
main_class = "de.nerden.kafka.streams.BazelJUnit5ConsoleLauncher",
test_package = "de.nerden.kafka.streams",
use_testrunner = False,
runtime_deps = [
"@maven//:org_junit_platform_junit_platform_commons",
"@maven//:org_junit_platform_junit_platform_console",
"@maven//:org_junit_platform_junit_platform_launcher",
"@maven//:org_junit_platform_junit_platform_suite_api",
"@maven//:org_slf4j_slf4j_simple",
],
deps = [
":library",
"//proto",
"@maven//:com_google_protobuf_protobuf_java",
"@maven//:com_google_truth_truth",
"@maven//:org_apache_kafka_kafka_clients",
"@maven//:org_apache_kafka_kafka_streams",
"@maven//:org_apache_kafka_kafka_streams_test_utils",
"@maven//:org_junit_platform_junit_platform_commons",
"@maven//:org_junit_platform_junit_platform_console",
"@maven//:org_junit_platform_junit_platform_launcher",
"@maven//:org_junit_platform_junit_platform_suite_api",
"@maven//:org_slf4j_slf4j_api",
],
)
java_export(
name = "library-export",
maven_coordinates = "de.nerden:kafka-streams-contrib:VERSION",
runtime_deps = [
"//:library",
],
)
java_binary(
name = "async-processor-example",
main_class = "de.nerden.kafka.streams.processor.examples.AsyncTransformerExample",
runtime_deps = [
":library",
"@maven//:org_slf4j_slf4j_simple",
],
)
java_binary(
name = "batch-processor-example",
main_class = "de.nerden.kafka.streams.processor.examples.BatchingProcessorExample",
runtime_deps = [
":library",
"@maven//:org_slf4j_slf4j_simple",
],
)