Skip to main content
Skip table of contents

Scala Parameters

SBT

Note: When using the legacy resolver (sbt.newSbtResolution=false), the SBT dependency graph plugin should be installed in the project for optimal results.

Configuration File Parameter

Description and Expected Behavior

If True

If False

Default

Command Line Parameter Available?

sbt.resolveDependencies 

Whether to resolve Scala dependencies (using sbt).

Will resolve Scala dependencies.

The Scala dependencies will not be resolved.

True
(except for when resolveAllDependencies=false)

No

sbt.ignoreSourceFiles 

When using the dependency resolver, it will include only package dependencies, not source files (file extensions .scala and .sbt).

NOTE: Only relevant when fileSystemScan is true.

Will ignore such source files in the scan.

Will scan such source files.

True

No

sbt.aggregateModules 

Whether to create a single project for all modules.

Will gather all Scala modules' scanned dependencies into one project in the Mend application.

A project will be created individually for each module. The name of the project will be equal to the name of the module (projectName will be ignored in this case).

False

No

sbt.runPreStep 

Whether to run "sbt compile" on the Scala project folder (only applicable in the legacy resolver,
sbt.newSbtResolution=false).

Will run the "sbt compile" command.

Will not run the command.

False

No

sbt.includedScopes

Describes which scopes should be scanned in the Scala resolver. Users can define additional scopes.

N/A

N/A

Default scopes:

compile, runtime

Additional supported scopes:

optional, provided, test

No

sbt.newSbtResolution

Whether to resolve Scala dependencies using the new sbt resolution method.

Note that only 1.x sbt versions are supported.

Will resolve Scala dependencies using the new sbt resolution method. This is only applicable when sbt.resolveDependencies=true.

Note that when set to ‘true’, this flag renders the sbt.runPreStep flag obsolete, as the new sbt resolution method does not require a pre-step.

Scala dependencies will be resolved using the legacy sbt resolution method (applicable when sbt.resolveDependencies=true).

 

False

No

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.