com.salesforce.functions:sf-fx-runtime-java-sdk-impl-v0

Java runtime for Salesforce Functions

License

License

BSD-3-Clause
Categories

Categories

Java Languages
GroupId

GroupId

com.salesforce.functions
ArtifactId

ArtifactId

sf-fx-runtime-java-sdk-impl-v0
Last Version

Last Version

0.1.4-ea
Release Date

Release Date

Type

Type

jar
Description

Description

Java runtime for Salesforce Functions

Download sf-fx-runtime-java-sdk-impl-v0

How to add to project

<!-- https://jarcasting.com/artifacts/com.salesforce.functions/sf-fx-runtime-java-sdk-impl-v0/ -->
<dependency>
    <groupId>com.salesforce.functions</groupId>
    <artifactId>sf-fx-runtime-java-sdk-impl-v0</artifactId>
    <version>0.1.4-ea</version>
</dependency>
// https://jarcasting.com/artifacts/com.salesforce.functions/sf-fx-runtime-java-sdk-impl-v0/
implementation 'com.salesforce.functions:sf-fx-runtime-java-sdk-impl-v0:0.1.4-ea'
// https://jarcasting.com/artifacts/com.salesforce.functions/sf-fx-runtime-java-sdk-impl-v0/
implementation ("com.salesforce.functions:sf-fx-runtime-java-sdk-impl-v0:0.1.4-ea")
'com.salesforce.functions:sf-fx-runtime-java-sdk-impl-v0:jar:0.1.4-ea'
<dependency org="com.salesforce.functions" name="sf-fx-runtime-java-sdk-impl-v0" rev="0.1.4-ea">
  <artifact name="sf-fx-runtime-java-sdk-impl-v0" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.salesforce.functions', module='sf-fx-runtime-java-sdk-impl-v0', version='0.1.4-ea')
)
libraryDependencies += "com.salesforce.functions" % "sf-fx-runtime-java-sdk-impl-v0" % "0.1.4-ea"
[com.salesforce.functions/sf-fx-runtime-java-sdk-impl-v0 "0.1.4-ea"]

Dependencies

compile (3)

Group / Artifact Type Version
com.google.code.gson : gson jar 2.8.6
org.apache.httpcomponents : httpclient jar 4.5.13
com.google.code.findbugs : jsr305 Optional jar 3.0.2

provided (3)

Group / Artifact Type Version
com.salesforce.functions : sf-fx-sdk-java jar 0.5.0-ea
io.cloudevents : cloudevents-core jar 2.1.0
com.salesforce.functions : sf-fx-runtime-java-cloudevent jar 0.1.4-ea

test (7)

Group / Artifact Type Version
com.github.tomakehurst : wiremock-jre8 jar 2.27.2
junit : junit jar 4.13.2
org.hamcrest : hamcrest jar 2.2
com.spotify : hamcrest-optional jar 1.2.0
com.spotify : hamcrest-pojo jar 1.2.0
nl.jqno.equalsverifier : equalsverifier jar 3.6
org.mockito : mockito-core jar 3.9.0

Project Modules

There are no modules declared in this project.

sf-fx-runtime-java

CircleCI

Note: This feature is in beta and has been released early so we can collect feedback. It may contain significant problems, undergo major changes, or be discontinued. The use of this feature is governed by the Salesforce.com Program Agreement.

Building

This project uses Maven Wrapper, run ./mvnw package to build and package the runtime. It requires at least OpenJDK 8.

Running

This project includes a shell script to run the project locally after building. To serve a function via HTTP:

$ ./sf-fx-runtime-java serve ~/projects/my-function
Usage: sf-fx-runtime-java [COMMAND]
Salesforce Functions Java Runtime
Commands:
serve   Serves a function project via HTTP
bundle  Pre-bundles a function project
help    Displays help information about the specified command

See 'sf-fx-runtime-java help <command>' to read about a specific subcommand.
Pre-bundles a function project
Usage: sf-fx-runtime-java bundle <projectPath> <bundlePath>
      <projectPath>   The directory that contains the function(s)
      <bundlePath>    The directory to write the bundle to
Serves a function project via HTTP
Usage: sf-fx-runtime-java serve [-p=<port>] <projectPath>
      <projectPath>   The directory that contains the function(s)
  -p, --port=<port>   The port the webserver should listen on.

Generating Code Coverage Reports

$ ./mvnw clean package jacoco:report

Reports for each module can then be found in the target/site/jacoco directory relative to the module root.

com.salesforce.functions

Salesforce Platform

APIs, tools, and frameworks for developers using the Salesforce Platform

Versions

Version
0.1.4-ea
0.1.3-ea
0.1.1-ea
0.1.0-ea