Skip to main content

Pub

Pub

The Pub package manager for Dart / Flutter.

Configuration

Example

Use the following syntax to configure this plugin globally as part of config.yml:

ort:
analyzer:
packageManagers:
Pub:
options:
flutterVersion: "3.19.3-stable"
gradleVersion: "7.3"
pubDependenciesOnly: false

Use the following syntax to configure this plugin in a repository's .ort.yml:

analyzer:
package_managers:
Pub:
options:
flutterVersion: "3.19.3-stable"
gradleVersion: "7.3"
pubDependenciesOnly: false

If the plugin is configured in both locations, the configurations are merged, with options from .ort.yml taking precedence over those from config.yml.

Options

flutterVersion

STRING Default

The version to use when bootstrapping Flutter. If Flutter is already on the path, this option is ignored.

gradleVersion

STRING Default

The version of Gradle to use when analyzing Gradle projects.

pubDependenciesOnly

BOOLEAN Default

Only scan Pub dependencies and skip native ones for Android (Gradle) and iOS (CocoaPods).