Add missing juniversalchardet dependency of the mime-type library The plugin uses org.overviewproject:mime-types 2.0.0 which requires com.github.albfernandez:juniversalchardet as a transitive dependency. Change-Id: I4ba92666f5b6290dadf8a48ab7270d3fac949a06
diff --git a/BUILD b/BUILD index e7b7df1..82ba9ba 100644 --- a/BUILD +++ b/BUILD
@@ -12,6 +12,7 @@ ], resources = glob(["src/main/resources/**/*"]), deps = [ + "@juniversalchardet//jar", "@mime-types//jar", ], ) @@ -19,6 +20,7 @@ TEST_DEPS = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [ "@commons-io//jar", "@mime-types//jar", + "@juniversalchardet//jar", ":uploadvalidator__plugin", ] @@ -41,7 +43,8 @@ name = "uploadvalidator_tests", testonly = 1, srcs = glob( - ["src/test/java/**/*Test.java"]), + ["src/test/java/**/*Test.java"], + ), tags = ["uploadvalidator"], deps = TEST_DEPS + [ ":testutils", @@ -52,7 +55,8 @@ name = "uploadvalidator_integration_tests", testonly = 1, srcs = glob( - ["src/test/java/**/*IT.java"]), + ["src/test/java/**/*IT.java"], + ), tags = ["uploadvalidator"], deps = TEST_DEPS + [ ":testutils",
diff --git a/external_plugin_deps.bzl b/external_plugin_deps.bzl index 6ef4aa8..c56b92d 100644 --- a/external_plugin_deps.bzl +++ b/external_plugin_deps.bzl
@@ -10,4 +10,9 @@ name = "mime-types", artifact = "org.overviewproject:mime-types:0.1.3", sha1 = "63ebd860cdad2f8a5fec89ae3238970607d943a3", - ) \ No newline at end of file + ) + maven_jar( + name = "juniversalchardet", + artifact = "com.github.albfernandez:juniversalchardet:2.5.0", + sha1 = "423123a1ddfe458d07948bc09cfa0170037a9e3d", + )