diff --git a/java/google/registry/BUILD b/java/google/registry/BUILD
index c1ff37f8a..815c5ebec 100644
--- a/java/google/registry/BUILD
+++ b/java/google/registry/BUILD
@@ -133,7 +133,7 @@ zip_file(
},
deps = [
":common_war",
- "//java/google/registry/ui:war",
+ "//java/google/registry/ui:minimal_war",
],
)
diff --git a/java/google/registry/env/alpha/backend/WEB-INF/appengine-web.xml b/java/google/registry/env/alpha/backend/WEB-INF/appengine-web.xml
index 54f782c31..9d026e1ce 100644
--- a/java/google/registry/env/alpha/backend/WEB-INF/appengine-web.xml
+++ b/java/google/registry/env/alpha/backend/WEB-INF/appengine-web.xml
@@ -22,8 +22,5 @@
-
-
-
diff --git a/java/google/registry/env/crash/backend/WEB-INF/appengine-web.xml b/java/google/registry/env/crash/backend/WEB-INF/appengine-web.xml
index b6f8925b3..47aa68a9a 100644
--- a/java/google/registry/env/crash/backend/WEB-INF/appengine-web.xml
+++ b/java/google/registry/env/crash/backend/WEB-INF/appengine-web.xml
@@ -22,8 +22,5 @@
-
-
-
diff --git a/java/google/registry/env/local/backend/WEB-INF/appengine-web.xml b/java/google/registry/env/local/backend/WEB-INF/appengine-web.xml
index a5e451cf2..dc2f284d1 100644
--- a/java/google/registry/env/local/backend/WEB-INF/appengine-web.xml
+++ b/java/google/registry/env/local/backend/WEB-INF/appengine-web.xml
@@ -26,14 +26,5 @@
-
-
-
-
-
-
-
-
-
diff --git a/java/google/registry/env/production/backend/WEB-INF/appengine-web.xml b/java/google/registry/env/production/backend/WEB-INF/appengine-web.xml
index e99978109..244c1f043 100644
--- a/java/google/registry/env/production/backend/WEB-INF/appengine-web.xml
+++ b/java/google/registry/env/production/backend/WEB-INF/appengine-web.xml
@@ -22,9 +22,6 @@
-
-
-
diff --git a/java/google/registry/env/sandbox/backend/WEB-INF/appengine-web.xml b/java/google/registry/env/sandbox/backend/WEB-INF/appengine-web.xml
index 69f1f6773..16cb0dd71 100644
--- a/java/google/registry/env/sandbox/backend/WEB-INF/appengine-web.xml
+++ b/java/google/registry/env/sandbox/backend/WEB-INF/appengine-web.xml
@@ -22,9 +22,6 @@
-
-
-
diff --git a/java/google/registry/ui/BUILD b/java/google/registry/ui/BUILD
index 00b0a38e0..911079fc6 100644
--- a/java/google/registry/ui/BUILD
+++ b/java/google/registry/ui/BUILD
@@ -17,6 +17,13 @@ filegroup(
],
)
+filegroup(
+ name = "minimal_runfiles",
+ srcs = [
+ "//java/google/registry/ui/html:html_files",
+ ],
+)
+
filegroup(
name = "runfiles_debug",
srcs = [
@@ -41,6 +48,15 @@ zip_file(
},
)
+zip_file(
+ name = "minimal_war",
+ srcs = [":minimal_runfiles"],
+ out = "minimal_ui.war",
+ mappings = {
+ "domain_registry/java/google/registry/ui/html": "",
+ },
+)
+
zip_file(
name = "war_debug",
srcs = [":runfiles_debug"],