commit | a79bfa770fc3d82c9eb28e1512c87a73cd4697bf | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Fri Mar 13 08:01:20 2015 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Wed Sep 09 07:58:22 2015 +0000 |
tree | ffe36fee84aa58c219d4c8c7b5e623b887ee13b5 | |
parent | d840bf9744fdb7a406c50134b3ec5412de18e8dd [diff] |
Bump to Scala 2.11.6 Change-Id: I26452e76f21f1718faba5dffaccdd04be562dce6
This plugin provides Scala runtime environment for Gerrit plugins in Scala.
To test this series must be applied on top of Gerrit master [1].
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”.