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
Test Project:
cd test-project
[email protected] SALESFORCE_PASSWORD=password activator
force:fetch
force:deploy
Release:
- Replace version in
README.md
- Tag the release:
git tag v0.0.x
- Publish the release:
activator publish