commit | f39e2d4dcd7e3f3ceb532731c9c98eda4728f736 | [log] [tgz] |
---|---|---|
author | Paladox none <thomasmulhall410@yahoo.com> | Sun Feb 12 22:17:41 2017 +0000 |
committer | Paladox none <thomasmulhall410@yahoo.com> | Mon Feb 13 13:34:33 2017 +0000 |
tree | 7d39ab8d866c167d9c8fadc3bd8a73d2ff501b32 | |
parent | bf79f894a59412b455e206ceb76a2671fae5cd71 [diff] |
Add support for Bazel in Gerrit tree build Change-Id: Ic1a46a529df6af6c0334b5d0142129546df1c8ea
This plugin provides Scala runtime environment for Gerrit plugins in Scala.
To build link this directory under Gerrit's tree plugins directory and run:
buck build plugins/scala-provider:scala-provider
The resulting artifact can be found under:
buck-out/gen/plugins/scala-provider/scala-provider.jar
A sample Scala hello world script is:
import com.google.gerrit.sshd._ import com.google.gerrit.extensions.annotations._ @Export("scala") class ScalaCommand extends SshCommand { override def run = stdout println "Hello from Scala!" }
Copy and past the above sample Scala fragment into the file $GERRIT_SITE/plugin/hello-1.0.scala.
The “hello” plugin version 1.0 will be automatically loaded into Gerrit and will provide a new SSH command “hello scala”.