Gradle Integration

Configuration

The configuration parameters that are specifically related to Gradle include the following:

  • gradle.ignoredScopes
  • gradle.includedScopes
  • gradle.resolveDependencies (By default, dependency resolution is enabled)
  • gradle.runAssembleCommand
  • gradle.runPreStep
  • gradle.localRepositoryPath
  • gradle.wrapperPath
  • gradle.downloadMissingDependencies
  • gradle.additionalArguments
  • gradle.ignoreSourceFiles
  • gradle.aggregateModules
  • gradle.preferredEnvironment
  • gradle.excludeModules
  • gradle.includeModules

In case the following parameters are set explicitly in the Unified Agent configuration file (when the generic ResolveAllDependencies parameter is set to false), the Gradle multi-module project should automatically be detected. 

  • gradle.resolveDependencies=true
  • gradle.aggregateModules=false

As a result, the Unified Agent will scan it and create a project per module in WhiteSource.

Known Limitations 

When setting the 'gradle.preferredEnvironment' parameter to ‘wrapper’, if there is no gradle or maven installed on the machine, then Unified Agent is not able to detect the dependencies' SHA-1, since it is searching for the relevant JAR files in either the '.gradle' or '.m2' directories.


More information on the above parameters can be found in the 
Configuration File & Parameters page.