Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Integrating into the build.gradle files

Usage
java -jar sl-build-scanner.jar -gradle -configfile <arg> -workspacepath <arg> [-pluginversion <arg>] [-repoConfig <arg>] [-includedProjects  <arg>] [-excludedProjects <arg>]
Parameterdescription
configfileThe path to the JSON configuration you created with the parameters to be provided to the SeaLights Gradle Plugin
workspacepathThe base path to the location of the build.gradle files to update
pluginversion(Optional) Version of the Gradle SeaLights Plugin to insert into the build.gradle
repoConfig(Optional) Configuration of repositories from which the SeaLights Gradle plugin will be taken.

This will be put as is in a Gradle script's buildScript { repositories { /* repoConfig */ } } block.
For multiline config, separate the lines by semicolon ;, e.g. -repocConfig "mavenLocal(); mavenCentral()"
includedProjects(Optional) Comma-separated list of Gradle (sub)projects to include in SeaLights integration.
When not set or empty, all (sub)projects are included
excludedProjects(Optional) Comma-separated list of Gradle (sub)projects to exclude from SeaLights integration.
Overrides includedProjects if a project’s name is on both includedProjects and excludedProjects

Restoring the build.gradle file to its previous state

Usage
java -jar sl-build-scanner.jar -restoreGradle -workspacepath <arg>
FlagUse
workspacepathThe base path to the location of the build.gradle files to update

Additional Configuration Options

Tagging

You can add tags to be viewed in the Sealights Cockpit for the agents started by this Gradle job by passing them through the sl.tags property in the sealightsJvmParams field

"sealightsJvmParams": {
    "sl.tags": "mytag",
}
  • No labels