Add direct dependency on commons-io to plugin definition
Although x-docs provides its own variant of commons-io through the
dependency chain
x-docs ->
//plugins/x-docs/lib/docx4j:docx4j_lib ->
//plugins/x-docs/lib/commons:commons_lib ->
//plugins/x-docs/lib/commons:io
, compiling the plugin nontheless failed [1] after Gerrit core stopped
providing its version of commons-io. Hence, to make x-docs compile
again, we add a direct dependency on commons-io to the plugin
definition.
[1] The error message was (reformatted for shorter line length):
[...]/plugins/x-docs/[...]/Formatters.java:43: error:
package org.apache.commons.io does not exist
import org.apache.commons.io.FilenameUtils;
^
. For full logs, see
http://builds.quelltextlich.at/gerrit/nightly/master/2015-08-06/x-docs.jar.build.stderr.txt
http://builds.quelltextlich.at/gerrit/nightly/master/2015-08-06/index.html#x-docs.jar
Change-Id: I34bbc68e74c3798fb789d571001cf38ee2301b61
diff --git a/BUCK b/BUCK
index 760727e..2bd5f04 100644
--- a/BUCK
+++ b/BUCK
@@ -6,10 +6,12 @@
ASCIIDOCTOR = '//lib/asciidoctor:asciidoc_lib'
DAISYDIFF = '//lib/daisydiff:daisydiff_lib'
DOCX4J = '//lib/docx4j:docx4j_lib'
+ COMMONS_IO = '//lib/commons:io'
else:
ASCIIDOCTOR = '//plugins/x-docs/lib/asciidoctor:asciidoc_lib'
DAISYDIFF = '//plugins/x-docs/lib/daisydiff:daisydiff_lib'
DOCX4J = '//plugins/x-docs/lib/docx4j:docx4j_lib'
+ COMMONS_IO = '//plugins/x-docs/lib/commons:io'
gerrit_plugin(
name = 'x-docs',
@@ -26,6 +28,7 @@
ASCIIDOCTOR,
DAISYDIFF,
DOCX4J,
+ COMMONS_IO,
],
)