Operating System PLugin
You need at least JDK 1.8 & Gradle 4.0 to use this plugin.
The plugin id is org.ysb33r.os.
This installs a small extension called OS with some basic functionality to query operating system parameters.
Boolean checks
OS.windows
OS.macOsX
OS.linux
OS.freeBSD
OS.netBSD
OS.solaris
Operating system properties
OS.name (1)
OS.version (2)
OS.pathVar (3)
OS.pathSeparator (4)
| 1 | Short operating system name |
| 2 | Descriptive version of operating system |
| 3 | The name of the environmental variable that holds the search path |
| 4 | The character that separates items in a search path |
You can also obtain access to Grolifant OperatingSystem object by doing OS.current which can provide even more information.