Gradle Plugin Configurations

SourceClear Software Composition Analysis

You can add the following configurations into the srcclr block in your build.gradle file. All are optional expect for apiToken, which you only need to set if it is not already set in the SRCCLR_API_TOKEN environment variable.

Field Name: apiToken

Description: With this option, all scanned repositories are uploaded as new projects in your personal environment on the SourceClear platform.

Default Value: null

Example: apiToken = "xdfsdfinerknwekrn13Ddfsa"

Field Name: shouldUpload

Description: A boolean value. If true, scan results persist on the SourceClear web application in the workspace associated with your apiToken.

Default Value: true

Example: shouldUpload = false

Field Name: scope

Description: A String value that defines the scope on which components should match. Other options may be runtime or test. You should use runtime if libraries are specified using the api or implementation keywords.

Default Value: compile

Example: scope = "compile"