Fix Truth dependencies The used version of Truth indirectly depends on diffutils. Add it similarly as we did for Gerrit core (see I80527c9ea4). Gerrit core also specifies Guava as runtime dependence, so do it here too. Change-Id: I3d106f3b990fa4447ac772cad4e2c4b3c2b50811
diff --git a/lib/BUILD b/lib/BUILD index 110865c..9aef1e0 100644 --- a/lib/BUILD +++ b/lib/BUILD
@@ -17,7 +17,6 @@ "jsr305", "servlet-api_2_5", "servlet-api_3_0", - "truth", "gson", "guava", "prettify",
diff --git a/lib/truth/BUILD b/lib/truth/BUILD new file mode 100644 index 0000000..22b79cf --- /dev/null +++ b/lib/truth/BUILD
@@ -0,0 +1,16 @@ +java_library( + name = "truth", + visibility = ["//visibility:public"], + exports = ["@truth//jar"], + runtime_deps = [ + ":diffutils", + "//lib:guava", + "//lib/junit", + ], +) + +java_library( + name = "diffutils", + visibility = ["//visibility:private"], + exports = ["@diffutils//jar"], +)