Moves bundled dependencies to plugin def

This change moves the bundled library dependencies
from being defined on each module to the plugin definition.

Additionally this change introduces the same check for libraries
than the one we have for modules: If a module needs a library
dependency, then plugin layout is used to verify that the dependency
is satisfied in production.

Test: Added check at build time
Bug: 179064916
Change-Id: I992d0856e29a53f59b9bd627838f4279a340663e
diff --git a/BUILD.bazel b/BUILD.bazel
index e6f63a6..ca4d8b4 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -86,12 +86,6 @@
         "compilerCommon/src/main/xml-gen",
         "compilerCommon/src/main/grammar-gen",
     ],
-    bundled_deps = [
-        "//prebuilts/tools/common/m2/repository/org/antlr/antlr4-runtime/4.5.3:antlr4-runtime",
-        "//prebuilts/tools/common/m2/repository/com/googlecode/juniversalchardet/juniversalchardet/1.0.3:juniversalchardet",
-        "//prebuilts/tools/common/m2/repository/com/squareup/javapoet/1.10.0:javapoet",
-        "//prebuilts/tools/common/m2/repository/com/android/tools/build/jetifier/jetifier-core/1.0.0-beta09:jetifier-core",
-    ],
     iml_files = ["compilerCommon/db-compilerCommon.iml"],
     test_srcs = [
         "compilerCommon/src/test/java",
@@ -203,13 +197,6 @@
         "compiler/src/main/java",
         "compiler/src/main/kotlin",
     ],
-    bundled_deps = [
-        "//prebuilts/tools/common/m2/repository/org/antlr/antlr4-runtime/4.5.3:antlr4-runtime",
-        "//prebuilts/tools/common/m2/repository/com/googlecode/juniversalchardet/juniversalchardet/1.0.3:juniversalchardet",
-        "//prebuilts/tools/common/m2/repository/commons-lang/commons-lang/2.6:commons-lang",
-        "//prebuilts/tools/common/m2/repository/com/squareup/javapoet/1.10.0:javapoet",
-        "//prebuilts/tools/common/m2/repository/com/google/auto/auto-common/0.10:auto-common",
-    ],
     iml_files = ["compiler/db-compiler.iml"],
     resources = ["compiler/src/main/resources"],
     test_data = [