Gradle
The Gradle package manager for Java.
Configuration
Example
Use the following syntax to configure this plugin globally as part of config.yml
:
ort:
analyzer:
packageManagers:
Gradle:
options:
gradleVersion: <OPTIONAL_STRING>
javaVersion: <OPTIONAL_STRING>
javaHome: <OPTIONAL_STRING>
Use the following syntax to configure this plugin in a repository's .ort.yml
:
analyzer:
package_managers:
Gradle:
options:
gradleVersion: <OPTIONAL_STRING>
javaVersion: <OPTIONAL_STRING>
javaHome: <OPTIONAL_STRING>
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
gradleVersion
The version of Gradle to use when analyzing projects. Defaults to the version defined in the Gradle wrapper properties.
javaVersion
The version of Java to use when analyzing projects. By default, the same Java version as for ORT itself it used.
Overrides javaHome
if both are specified.
javaHome
The directory of the Java home to use when analyzing projects. By default, the same Java home as for ORT itself is used.