-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
88 lines (80 loc) · 3.03 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
87
88
load("@rules_java//java:defs.bzl", "java_binary", "java_library", "java_plugin", "java_test")
java_plugin(
name = "type_element_annotation_processor",
processor_class = "io.micronaut.annotation.processing.TypeElementVisitorProcessor",
deps = [
"@maven//:io_micronaut_micronaut_inject_java",
"@maven//:io_micronaut_micronaut_aop",
"@maven//:io_micronaut_micronaut_inject",
"@maven//:io_micronaut_micronaut_validation"
]
)
java_plugin(
name = "aggregating_type_element_annotation_processor",
processor_class = "io.micronaut.annotation.processing.AggregatingTypeElementVisitorProcessor",
deps = [
"@maven//:io_micronaut_micronaut_inject_java",
"@maven//:io_micronaut_micronaut_aop",
"@maven//:io_micronaut_micronaut_inject",
"@maven//:io_micronaut_micronaut_validation"
]
)
java_plugin(
name = "bean_definition_annotation_processor",
processor_class = "io.micronaut.annotation.processing.BeanDefinitionInjectProcessor",
deps = [
"@maven//:io_micronaut_micronaut_inject_java",
"@maven//:io_micronaut_micronaut_aop",
"@maven//:io_micronaut_micronaut_inject",
"@maven//:io_micronaut_micronaut_validation"
]
)
java_plugin(
name = "service_descriptor_annotation_processor",
processor_class = "io.micronaut.annotation.processing.ServiceDescriptionProcessor",
deps = [
"@maven//:io_micronaut_micronaut_inject_java",
"@maven//:io_micronaut_micronaut_aop",
"@maven//:io_micronaut_micronaut_inject",
"@maven//:io_micronaut_micronaut_validation"
]
)
java_library(
name = "micronaut_libs",
exported_plugins = ["service_descriptor_annotation_processor","type_element_annotation_processor","aggregating_type_element_annotation_processor", "bean_definition_annotation_processor"],
exports = [
"@maven//:io_micronaut_micronaut_inject_java",
"@maven//:io_micronaut_micronaut_aop",
"@maven//:io_micronaut_micronaut_inject",
"@maven//:io_micronaut_micronaut_validation"
]
)
java_library(
name = "backend_deps",
resources = glob(["src/backend/src/main/resources/**/*.xml", "src/backend/src/main/resources/**/*.yml"]),
exports = [
"@maven//:ch_qos_logback_logback_classic",
"@maven//:io_micronaut_micronaut_runtime",
"@maven//:io_micronaut_micronaut_http_server_netty",
"@maven//:io_micronaut_micronaut_http_client",
"@maven//:io_micronaut_micronaut_core",
"@maven//:io_micronaut_micronaut_context",
"@maven//:io_micronaut_micronaut_validation",
"@maven//:io_micronaut_micronaut_aop",
"@maven//:io_micronaut_micronaut_inject",
"@maven//:io_micronaut_micronaut_inject_java"
]
)
java_library(
name = "backend_libs",
srcs = glob(["src/backend/src/main/java/**/*.java"]),
deps = [
":micronaut_libs",
":backend_deps",
],
)
java_binary(
name = "backend-services",
main_class = "com.example.Application",
runtime_deps = [":backend_libs"]
)