Move plugin underneath 'its' package hierarchy
This plugin was called 'hooks-bugzilla' before, which lived underneath
'[...].plugins.hooks.bz'. Some time ago, the repository got renamed to
'its-bugzilla', but the package name has not yet been updated. Hence
we update it now to match the package of its-phabricator and
its-storyboard.
Change-Id: I941589b6acc36a89a1d835cff4e0a5008f7c928f
diff --git a/BUCK b/BUCK
index d409ec3..941e49e 100644
--- a/BUCK
+++ b/BUCK
@@ -3,8 +3,8 @@
srcs = glob(['src/main/java/**/*.java']),
resources = glob(['src/main/resources/**/*']),
manifest_entries = [
- 'Gerrit-Module: com.googlesource.gerrit.plugins.hooks.bz.BugzillaModule',
- 'Gerrit-InitStep: com.googlesource.gerrit.plugins.hooks.bz.InitBugzilla',
+ 'Gerrit-Module: com.googlesource.gerrit.plugins.its.bugzilla.BugzillaModule',
+ 'Gerrit-InitStep: com.googlesource.gerrit.plugins.its.bugzilla.InitBugzilla',
'Gerrit-ReloadMode: reload',
'Implementation-Title: Bugzilla ITS Plugin',
'Implementation-URL: https://www.wikimediafoundation.org',
diff --git a/src/main/java/com/googlesource/gerrit/plugins/hooks/bz/BugzillaClient.java b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaClient.java
similarity index 98%
rename from src/main/java/com/googlesource/gerrit/plugins/hooks/bz/BugzillaClient.java
rename to src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaClient.java
index 770ed96..f3f6d18 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/hooks/bz/BugzillaClient.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaClient.java
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package com.googlesource.gerrit.plugins.hooks.bz;
+package com.googlesource.gerrit.plugins.its.bugzilla;
import java.util.HashMap;
import java.util.Set;
diff --git a/src/main/java/com/googlesource/gerrit/plugins/hooks/bz/BugzillaItsFacade.java b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacade.java
similarity index 98%
rename from src/main/java/com/googlesource/gerrit/plugins/hooks/bz/BugzillaItsFacade.java
rename to src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacade.java
index d4957cf..2a2006a 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/hooks/bz/BugzillaItsFacade.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacade.java
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package com.googlesource.gerrit.plugins.hooks.bz;
+package com.googlesource.gerrit.plugins.its.bugzilla;
import java.io.IOException;
import java.net.URL;
diff --git a/src/main/java/com/googlesource/gerrit/plugins/hooks/bz/BugzillaModule.java b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaModule.java
similarity index 97%
rename from src/main/java/com/googlesource/gerrit/plugins/hooks/bz/BugzillaModule.java
rename to src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaModule.java
index 60b5181..3558ff8 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/hooks/bz/BugzillaModule.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaModule.java
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package com.googlesource.gerrit.plugins.hooks.bz;
+package com.googlesource.gerrit.plugins.its.bugzilla;
import org.eclipse.jgit.lib.Config;
import org.slf4j.Logger;
diff --git a/src/main/java/com/googlesource/gerrit/plugins/hooks/bz/InitBugzilla.java b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/InitBugzilla.java
similarity index 98%
rename from src/main/java/com/googlesource/gerrit/plugins/hooks/bz/InitBugzilla.java
rename to src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/InitBugzilla.java
index e9175da..12c9cf5 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/hooks/bz/InitBugzilla.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/InitBugzilla.java
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package com.googlesource.gerrit.plugins.hooks.bz;
+package com.googlesource.gerrit.plugins.its.bugzilla;
import com.google.gerrit.extensions.annotations.PluginName;
import com.google.gerrit.pgm.init.api.AllProjectsConfig;
diff --git a/src/test/java/com/googlesource/gerrit/plugins/hooks/bz/BugzillaItsFacadeTest.java b/src/test/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacadeTest.java
similarity index 96%
rename from src/test/java/com/googlesource/gerrit/plugins/hooks/bz/BugzillaItsFacadeTest.java
rename to src/test/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacadeTest.java
index 5c43601..15d2493 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/hooks/bz/BugzillaItsFacadeTest.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacadeTest.java
@@ -11,7 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-package com.googlesource.gerrit.plugins.hooks.bz;
+package com.googlesource.gerrit.plugins.its.bugzilla;
import static org.easymock.EasyMock.expect;
@@ -22,7 +22,9 @@
import com.google.gerrit.server.config.GerritServerConfig;
import com.google.inject.Guice;
import com.google.inject.Injector;
+
import com.googlesource.gerrit.plugins.hooks.testutil.LoggingMockingTestCase;
+import com.googlesource.gerrit.plugins.its.bugzilla.BugzillaItsFacade;
public class BugzillaItsFacadeTest extends LoggingMockingTestCase {
private Injector injector;