Include libraries licenses in d8.jar and r8.jar

This change is:
- Excluding META-INF from libraries when packaging the jars.
- Adding a file LIBRARY-LICENSE listing license information of all
  libraries included in the jars.
- Adding a task checkLicenses checking that LIBRARY-LICENSE is aligned
  with the jar dependencies.
- Replace the LICENSE file included in jar by a consolidated version
  containing r8/LICENSE, r8/LIBRARY-LICENSE and every file found in
  library-licensing

From there, any addition or removal of dependency will need an update of
LIBRARY-LICENSE or r8.jar/d8.jar won't package. When updating
LIBRARY-LICENSE we'll need to check that the content of
library-licensing is still accurate, there is no check on this.

Bug: 65479022
Change-Id: I1746c574744bc3d8afc0d16d5687994bc14fd5ea
diff --git a/LIBRARY-LICENSE b/LIBRARY-LICENSE
new file mode 100644
index 0000000..b4f1d2a
--- /dev/null
+++ b/LIBRARY-LICENSE
@@ -0,0 +1,50 @@
+- artifact: com.google.guava:guava:+
+  name: Guava Google Core Libraries for Java
+  copyrightHolder: The Guava Authors
+  license: The Apache Software License, Version 2.0
+  licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
+- artifact: com.googlecode.json-simple:json-simple:+
+  name: JSON.Simple
+  license: The Apache Software License, Version 2.0
+  licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
+  url: http://code.google.com/p/json-simple/
+- artifact: it.unimi.dsi:fastutil:+
+  name: fastutil
+  license: Apache License, Version 2.0
+  licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.html
+  url: http://fasutil.di.unimi.it/
+- artifact: net.sf.jopt-simple:jopt-simple:+
+  name: JOpt Simple
+  license: The MIT License
+  licenseUrl: http://www.opensource.org/licenses/mit-license.php
+  url: http://pholser.github.com/jopt-simple
+- artifact: org.apache.commons:commons-compress:+
+  name: Apache Commons Compress
+  copyrightHolder: The Apache Software Foundation
+  license: The Apache Software License, Version 2.0
+  licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
+  url: http://commons.apache.org/proper/commons-compress/
+- artifact: org.ow2.asm:asm-commons:+
+  name: ASM Commons
+  copyrightHolder: INRIA, France Telecom
+  license: ASM license
+  licenseUrl: http://asm.ow2.org/license.html
+  url: http://asm.ow2.org/index.html
+- artifact: org.ow2.asm:asm-tree:+
+  name: ASM Tree
+  copyrightHolder: INRIA, France Telecom
+  license: ASM license
+  licenseUrl: http://asm.ow2.org/license.html
+  url: http://asm.ow2.org/index.html
+- artifact: org.ow2.asm:asm-util:+
+  name: ASM Util
+  copyrightHolder: INRIA, France Telecom
+  license: ASM license
+  licenseUrl: http://asm.ow2.org/license.html
+  url: http://asm.ow2.org/index.html
+- artifact: org.ow2.asm:asm:+
+  name: ASM Core
+  copyrightHolder: INRIA, France Telecom
+  license: ASM license
+  licenseUrl: http://asm.ow2.org/license.html
+  url: http://asm.ow2.org/index.html