A Gradle plugin to allow projects to build/run using the local Webots installation.
This plugin:
-
Looks for your local Webots installation in
$WEBOTS_HOME
and in the default installation location(s) for your platform. -
Provides a
webots.home
property that is the path to the installation that was found. -
Adds an
implementation
dependency on that installation'sController.jar
. -
Provides a
webots.nativeLibs
property that is aFileCollection
containing 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.path
system 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.