forked from fbatroni/harness-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
150 lines (143 loc) · 5.83 KB
/
BUILD.bazel
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
load("@rules_java//java:defs.bzl", "java_binary")
load("//:tools/bazel/GenTestRules.bzl", "run_tests")
load("//:tools/bazel/macros.bzl", "run_analysis")
HarnessTeam = "CV"
shared_dependencies = [
"@maven//:com_google_guava_guava",
"@maven//:io_netty_netty_all",
] + [
"//:lombok",
"//430-cv-nextgen-commons:module",
"//440-connector-nextgen:module",
"//860-orchestration-steps:module", # This needs to be removed from here
"//878-ng-common-utilities:module",
"//879-pms-sdk:module",
"//950-wait-engine:module",
"//clients/notification:module",
"//940-primary-version-manager:module",
"//940-secret-manager-client:module",
"//953-events-api:module",
"//954-connector-beans:module",
"//960-continuous-features:module",
"//platform-service/modules/notification-service/contracts:module",
"//960-persistence:module",
"//965-api-key-filter:module",
"//970-ng-commons:module",
"//980-commons:module",
"//clients/access-control/sdk:module",
"@maven//:com_fasterxml_jackson_core_jackson_annotations",
"@maven//:com_fasterxml_jackson_core_jackson_core",
"@maven//:com_fasterxml_jackson_core_jackson_databind",
"@maven//:com_github_reinert_jjschema",
"@maven//:com_google_inject_guice",
"@maven//:com_palominolabs_metrics_metrics_guice",
"@maven//:com_smoketurner_dropwizard_swagger",
"@maven//:com_squareup_okhttp3_okhttp",
"@maven//:com_squareup_retrofit2_retrofit",
"@maven//:io_dropwizard_bundles_dropwizard_configurable_assets_bundle",
"@maven//:io_dropwizard_dropwizard_assets",
"@maven//:io_dropwizard_dropwizard_auth",
"@maven//:io_dropwizard_dropwizard_configuration",
"@maven//:io_dropwizard_dropwizard_core",
"@maven//:io_dropwizard_dropwizard_http2",
"@maven//:io_dropwizard_dropwizard_jackson",
"@maven//:io_dropwizard_dropwizard_jersey",
"@maven//:io_dropwizard_dropwizard_jetty",
"@maven//:io_dropwizard_dropwizard_lifecycle",
"@maven//:io_dropwizard_dropwizard_logging",
"@maven//:io_dropwizard_dropwizard_metrics",
"@maven//:io_dropwizard_dropwizard_metrics_graphite",
"@maven//:io_dropwizard_dropwizard_request_logging",
"@maven//:io_dropwizard_dropwizard_servlets",
"@maven//:io_dropwizard_dropwizard_util",
"@maven//:io_dropwizard_dropwizard_validation",
"@maven//:io_dropwizard_dropwizard_views",
"@maven//:io_dropwizard_dropwizard_views_freemarker",
"@maven//:io_dropwizard_dropwizard_views_mustache",
"@maven//:io_dropwizard_metrics_metrics_annotation",
"@maven//:io_dropwizard_metrics_metrics_core",
"@maven//:io_dropwizard_metrics_metrics_graphite",
"@maven//:io_dropwizard_metrics_metrics_healthchecks",
"@maven//:io_dropwizard_metrics_metrics_jersey2",
"@maven//:io_dropwizard_metrics_metrics_jetty9",
"@maven//:io_dropwizard_metrics_metrics_json",
"@maven//:io_dropwizard_metrics_metrics_jvm",
"@maven//:io_dropwizard_metrics_metrics_logback",
"@maven//:io_dropwizard_metrics_metrics_servlets",
"@maven//:io_swagger_swagger_annotations",
"@maven//:io_swagger_swagger_core",
"@maven//:io_swagger_swagger_jaxrs",
"@maven//:io_swagger_swagger_jersey2_jaxrs",
"@maven//:io_swagger_swagger_models",
"@maven//:io_opencensus_opencensus_api",
"@maven//:io_opencensus_opencensus_impl",
"@maven//:io_opencensus_opencensus_exporter_stats_stackdriver",
"@maven//:javax_annotation_javax_annotation_api",
"@maven//:javax_validation_validation_api",
"@maven//:javax_ws_rs_javax_ws_rs_api",
"@maven//:org_apache_commons_commons_lang3",
"@maven//:org_apache_logging_log4j_log4j_api",
"@maven//:org_glassfish_jersey_bundles_repackaged_jersey_guava",
"@maven//:org_glassfish_jersey_containers_jersey_container_servlet",
"@maven//:org_glassfish_jersey_containers_jersey_container_servlet_core",
"@maven//:org_glassfish_jersey_core_jersey_client",
"@maven//:org_glassfish_jersey_core_jersey_common",
"@maven//:org_glassfish_jersey_core_jersey_server",
"@maven//:org_hibernate_hibernate_validator",
"@maven//:org_mongodb_morphia_morphia",
"@maven//:org_reflections_reflections",
"@maven//:org_slf4j_slf4j_api",
"@maven//:ru_vyarus_guice_validator",
"@maven//:io_harness_cv_data_collection_dsl",
]
java_binary(
name = "module",
srcs = glob(["src/main/java/**/*.java"]),
data = ["//:resource"],
main_class = "io.harness.cvng.VerificationApplication",
resources = [
"//300-cv-nextgen/src/main/resources:resource",
],
visibility = ["//visibility:public"],
runtime_deps = [
"//300-cv-nextgen/src/main/resources",
],
deps = shared_dependencies,
)
java_library(
name = "tests",
testonly = True,
srcs = glob(["src/test/**/*.java"]),
data = [
"//300-cv-nextgen/src/main/resources:resource",
"//300-cv-nextgen/src/test/resources:resource",
],
resources = [
"//300-cv-nextgen/src/main/resources:resource",
"//300-cv-nextgen/src/test/resources:resource",
],
visibility = ["//visibility:public"],
deps = shared_dependencies + [
":module",
"//960-persistence:supporter-test",
"//990-commons-test:module",
"@maven//:com_google_code_gson_gson",
"@maven//:commons_io_commons_io",
"@maven//:de_bwaldvogel_mongo_java_server_core",
"@maven//:de_bwaldvogel_mongo_java_server_memory_backend",
"@maven//:io_dropwizard_dropwizard_testing",
"@maven//:io_github_benas_random_beans",
"@maven//:io_specto_hoverfly_java",
"@maven//:junit_junit",
"@maven//:org_assertj_assertj_core",
"@maven//:org_mockito_mockito_core",
"@maven//:org_mongodb_mongo_java_driver",
"@maven//:org_powermock_powermock_module_junit4",
],
)
run_tests()
run_analysis()
exports_files([
"keystore.jks",
"cv-nextgen-config.yml",
])