A Gradle plugin to allow projects to build/run using the local Webots installation.
This plugin:
-
Looks for your local Webots installation in
$WEBOTS_HOMEand in the default installation location(s) for your platform. -
Provides a
webots.homeproperty that is the path to the installation that was found. -
Adds an
implementationdependency on that installation'sController.jar. -
Provides a
webots.nativeLibsproperty that is aFileCollectioncontaining the native libraries that need to be loadable by an extern Webots controller. This can be useful if your build copies such libs to a single location referenced by the JVM'sjava.library.pathsystem property. -
Add the directories containing the above native libraries to the OS-specific environment variable in the environments of Gradle tasks. This makes it possible to run controllers and controller tests from Gradle without needed to set the variable manually.