github.com/joey-fossa/fossa-cli@v0.7.34-0.20190708193710-569f1e8679f0/docs/integrations/sbt.md (about) 1 # SBT 2 3 ## Support 4 5 SBT support in FOSSA CLI depends on the following tools existing in your environment: 6 7 - Java (defaults to `java`, configure with `$JAVA_BINARY`) 8 - SBT (defaults to `sbt`, configure with `$SBT_BINARY`) 9 10 In addition, SBT requires the following plugin to be installed: 11 - `net.virtual-void.sbt-dependency-graph`: install by adding `addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.0")` to your SBT configuration 12 13 ## Configuration 14 15 Automatic: Run `fossa init` to detect all directories with a `build.sbt` file at their root. fossa runs `sbt projects` at these directories roots and creates a module for each sbt project with configuration set to `compile` by default. 16 17 Manual: Add an `sbt` module with the path to the `build.sbt` file in your project. Set target to `<project>:<configuration>` where project is the desired sbt project and configuration is the configuration analysis is desired for. 18 19 ```yaml 20 analyze: 21 modules: 22 - name: your-sbt-project 23 type: sbt 24 path: build.sbt 25 target: <project>:<configuration> 26 ``` 27 28 ## Analysis 29 30 Analysis parses the output of `sbt -no-colors <project>/<configuration>:dependencyList` to retrieve a full list of dependencies utilized by your project. 31 32 ## Known Limitations 33 34 - Currently fossa can only analyze a project if the user has `net.virtual-void.sbt-dependency-graph` installed.