jamesward / sbt-force   0.0.3

GitHub
Scala versions: 2.12
sbt plugins: 1.0

Salesforce sbt Plugin

Usage

Add the plugin in your project/plugins.sbt file:

addSbtPlugin("com.jamesward" % "sbt-force" % "0.0.3")

Enable the plugin and set its config in your build.sbt file:

enablePlugins(ForcePlugin)

username in Force := sys.env("SALESFORCE_USERNAME")

password in Force := sys.env("SALESFORCE_PASSWORD")

unpackagedComponents in Force := Map("ApexClass" -> Seq("*"))

packagedComponents in Force := Seq("com.foo")

Fetch Metadata:

[email protected] SALESFORCE_PASSWORD=password activator force:fetch

Deploy Metadata:

[email protected] SALESFORCE_PASSWORD=password activator force:deploy

Developer Info

Test Project:

cd test-project
[email protected] SALESFORCE_PASSWORD=password activator
force:fetch
force:deploy

Release:

  1. Replace version in README.md
  2. Tag the release: git tag v0.0.x
  3. Publish the release: activator publish