Automation Gradle Tasks

The automation-build-gradle plugin provides several Gradle tasks to support the build process of Automation Projects.

Available Gradle Tasks

The following Gradle tasks are provided by the automation-build-gradle plugin:

Task 'automationBuildPluginVersionCheck'

This task checks whether the version of the automation-build-gradle plugin used in the build is compatible with the DaVinciConfigurator project.

The minimal required plugin version is defined in the DaVinciConfigurator's `version.json` file (property: `minimalAutomationPluginVersion`).

When this task runs, it reads the required version from `version.json` and compares it with the current plugin version:

  • If the current version is lower than required, the build fails with a clear error message so that you know you must update the plugin.
  • If the file `version.json` or the property `minimalAutomationPluginVersion` is missing, the version check is skipped and a warning is logged.
This task is designed to run automatically when a script is compiled, so that incompatible plugin versions are detected early.

Task 'initBswmdModel'

The InitBswmdTask initializes the automation BSWMD model of the given BSW package. The BSWMD model will be copied in the given output directory.

Task 'testCfg'

This task executes the tests of the Automation Testing Framework against the DaVinci Configurator. For more information about the Automation Testing Framework, see the documentation of the Automation Testing Framework.