-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD
41 lines (37 loc) · 945 Bytes
/
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
load("@rules_java//java:defs.bzl", "java_library")
load("@bazville//tools/java:webapp.bzl", "webapp")
load("@bazville//tools/java:jar.bzl", "jar")
load("@bazville//tools/tomcat:tomcat.bzl", "tomcat_binary")
java_library(
name = "serverlib",
srcs = glob(["*.java"]),
deps = [
"//third_party/java/flogger",
"//third_party/java/guava",
"//third_party/java/servlet-api",
"//third_party/java/springframework:spring-web",
],
)
# Web application directory.
webapp(
name = "webapp",
srcs = glob([
"WEB-INF/**",
"images/**",
]) + [
"//webapp/aoj",
],
deps = [":serverlib"],
)
# War bundle file.
jar(
name = "war",
src = ":webapp",
file_name = "aoj.war",
)
# Executable build target that runs the web application with a tomcat.
tomcat_binary(
name = "server",
app_dir = ":webapp",
tomcat_bundle = "@bazville//tools/tomcat:tomcat_9",
)