commit | c8feaa849dcbdc3772a397b50bc31aa5b1a719b5 | [log] [tgz] |
---|---|---|
author | Sebastian Schuberth <sschuberth@gmail.com> | Wed May 18 11:40:24 2016 +0200 |
committer | Sebastian Schuberth <sschuberth@gmail.com> | Wed May 18 11:40:24 2016 +0200 |
tree | 613b754f1c314e5bf9862922c8a345a094fe4f56 | |
parent | a79bfa770fc3d82c9eb28e1512c87a73cd4697bf [diff] |
README: Remove the link to pending changes for Gerrit master All required changes are in Gerrit upstream now. Change-Id: If99fbf5500343beebd56958bf51d8a575ae1b613
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”.