Harmonize external dependency names

In gerrit core change I1e75690fe the commons_codec and commons_io names
were changed to commons-codec and commons-io.

Update the names to match, and also rename the locally defined names at
the same time.

Also format the BUILD file with buildifier version 0.12.0.

Change-Id: Ibedfbe1d2208a98305be1357161a67248fb5d679
diff --git a/BUILD b/BUILD
index f5c232f..a2d6d18 100644
--- a/BUILD
+++ b/BUILD
@@ -1,9 +1,9 @@
 load("//tools/bzl:junit.bzl", "junit_tests")
 load(
     "//tools/bzl:plugin.bzl",
-    "gerrit_plugin",
     "PLUGIN_DEPS",
     "PLUGIN_TEST_DEPS",
+    "gerrit_plugin",
 )
 
 gerrit_plugin(
@@ -20,9 +20,9 @@
     resources = glob(["src/main/resources/**/*"]),
     deps = [
         "//plugins/its-base",
-        "@commons_codec//jar:neverlink",
-        "@commons_io//jar",
-        "@commons_logging//jar",
+        "@commons-codec//jar:neverlink",
+        "@commons-io//jar",
+        "@commons-logging//jar",
     ],
 )
 
diff --git a/external_plugin_deps.bzl b/external_plugin_deps.bzl
index df3c787..b078f29 100644
--- a/external_plugin_deps.bzl
+++ b/external_plugin_deps.bzl
@@ -2,7 +2,7 @@
 
 def external_plugin_deps():
   maven_jar(
-    name = 'commons_logging',
+    name = 'commons-logging',
     artifact = 'commons-logging:commons-logging:1.2',
     sha1 = '4bfc12adfe4842bf07b657f0369c4cb522955686',
   )