This is a simple Groovy project built with gradle
To build a Funcatron deployable JAR file, type:
gradle clean
gradle shadowJar
Those commands tell gradle to clean any artifacts, compile,
and build an ShadowJar
of the compiled Java code as well as all the dependencies.
The compiled JAR file can be found at
build/libs/groovy-all.jar
.
To upload the build to your Funcatron cluster:
wget -O - --post-file=build/libs/groovy-all.jar \
http://<TRON_HOST>:<TRON_PORT>/api/v1/add_func
See this blog post
for more information on how to upload and enable Func Bundles.
curl -H "Content-Type: application/json" -d '{"sha":"GROOVY_SHA", "props": {"key": "value"}}' -X POST http://FUNCATRON_SERVER:FUNCATRON_PORT/api/v1/enable