OkBuck support relies on the presence of a buck wrapper, ./buckw
, to be present in an okbuck repository.
Run fossa init
to detect if a buckw
binary exists in the present directory.
Add a module with type: okbuck
, target
set to a valid buck target, and dir
set to the root of the project.
analyze:
modules:
- name: okbuck
type: okbuck
target: //...
dir: .
options:
classpath: //app:bin_prodRelease
Option | Type | Name | Common Use Case |
---|---|---|---|
classpath |
string | Class Path | Retrieve the dependencies from a specific classpath. |
Specifying a classpath ensures that only dependencies related to the specified classpath are returned. In order to do this, FOSSA must modify the normal analysis to:
- Run
./buckw audit classpath <target>
to find jar's used by the classpath. - Map the jar's to the dependency information from
./buckw targets //...
. - Return the corresponding Maven coordinates.
Analysis of an okbuck project leverages the existence of maven coordinates in the build information. By default, FOSSA will run buck targets //... --json
and parse the Maven coordinates from each target into a dependency.