Define local licenses

Gerrit core fixed license generation in
c535dd6e231821a940ef692ca36d8182b30ff80c, which made the build of
x-docs fail [1], as the local licenses have not been defined. We now
define them to allow building against current gerrit core master.

[1] Error message was (wrapped long lines)

  BUILD FAILED: Couldn't get dependency '//lib:LICENSE-mbassador' of
  target '//plugins/x-docs/lib/docx4j:mbassador': The build file that
  should contain //lib:LICENSE-mbassador has already been parsed
  (/home/gerrit_builder/builds/master/gerrit/lib/BUCK), but
  //lib:LICENSE-mbassador was not found. Please make sure that
  //lib:LICENSE-mbassador is defined in
  /home/gerrit_builder/builds/master/gerrit/lib/BUCK.

See
  http://builds.quelltextlich.at/gerrit/nightly/master/2015-06-26/index.html#x-docs.jar
  http://builds.quelltextlich.at/gerrit/nightly/master/2015-06-26/x-docs.jar.build.stderr.txt

Change-Id: I96d666f6ce4bb8b1376bd7d89a9a6e837820dd3d
diff --git a/lib/asciidoctor/BUCK b/lib/asciidoctor/BUCK
index c0e1638..701af29 100644
--- a/lib/asciidoctor/BUCK
+++ b/lib/asciidoctor/BUCK
@@ -1,5 +1,7 @@
 include_defs('//bucklets/maven_jar.bucklet')
 
+define_license('jruby')
+
 java_library(
   name = 'asciidoc_lib',
   exported_deps = [
diff --git a/lib/docx4j/BUCK b/lib/docx4j/BUCK
index b9c84bb..a66598f 100644
--- a/lib/docx4j/BUCK
+++ b/lib/docx4j/BUCK
@@ -1,6 +1,9 @@
 include_defs('//bucklets/gerrit_plugin.bucklet')
 include_defs('//bucklets/maven_jar.bucklet')
 
+define_license('mbassador')
+define_license('slf4j')
+
 if STANDALONE_MODE:
   ANTLR  = '//lib/antlr:antlr_lib'
   AVALON_FRAMEWORK = '//lib/avalon-framework:avalon-framework_lib'
@@ -62,6 +65,7 @@
   sha1 = '7aa2c6f172cc8c59983c5255faa45a16a41e173b',
   src_sha1 = 'd10cdaf71bfcb2002ab904a9d475e60c70c9b6bf',
   license = 'mbassador',
+  local_license = True,
 )
 
 maven_jar(
@@ -70,6 +74,7 @@
   sha1 = '2b8019b6249bb05d81d3a3094e468753e2b21311',
   src_sha1 = '0acd62e31cc314266e73eebed0b6dd7ea974a0ed',
   license = 'slf4j',
+  local_license = True,
 )
 
 maven_jar(