[Build] Adds a BUCK file and a Module. So that we can build the jar for the plugin. For the moment, it does nothing, but you can run : buck build buck build plugins/automerge-plugin:automerge-plugin and it will build the plugin in ./buck-out/gen/plugins/automerge-plugin/automerge-plugin.jar
diff --git a/BUCK b/BUCK new file mode 100644 index 0000000..657539f --- /dev/null +++ b/BUCK
@@ -0,0 +1,26 @@ +# Copyright 2014 Criteo +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. + +include_defs('//bucklets/gerrit_plugin.bucklet') + +gerrit_plugin( + name = 'automerge-plugin', + srcs = glob(['src/main/java/**/*.java']), + manifest_entries = [ + 'Gerrit-PluginName: automerge', + 'Gerrit-Module: com.criteo.gerrit.plugins.automerge.Module', + 'Implementation-Title: Automerge plugin', + 'Implementation-URL: https://github.com/criteo/automerge-plugin' + ] +)
diff --git a/src/main/java/com/criteo/gerrit/plugins/automerge/Module.java b/src/main/java/com/criteo/gerrit/plugins/automerge/Module.java new file mode 100644 index 0000000..1cb4467 --- /dev/null +++ b/src/main/java/com/criteo/gerrit/plugins/automerge/Module.java
@@ -0,0 +1,28 @@ +// Copyright 2014 Criteo +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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.criteo.gerrit.plugins.automerge; +import com.google.inject.AbstractModule; + +/** + * Main automerge Guice module. + * + * Configures how all classes in the plugin are instantiated via Guice. + */ +public class Module extends AbstractModule { + + @Override + protected void configure() { + } +}