commit | 9a9304e9d2727065f3314aca461f5fd356810a47 | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Wed Oct 16 12:56:54 2019 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Wed Oct 16 12:56:54 2019 +0900 |
tree | 401cba9e4ed782aee0c705b381c1ff357af50814 | |
parent | c7b26e51b28d5d6f5a61dd832ffb6f3da325f492 [diff] |
Replace bazel-genfiles with bazel-bin in documentation Bug: Issue 11757 Change-Id: I1bc73fb3a28763965a6f228a78cd4b78bbae6e3b
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”.