Alternatives

There are other ways in the Gradle ecosystem to obtain operating system and architecture information. The solution you choose might werll depend on what your requirements are. These alternatives include:

  • Google’s OS Detector plugin. It uses the OS Maven plugin under the hood. If you want that kind of behaviour, the this might be the plugin to use.

  • Ant OS properties. Very basic, but might suffice for some usages.

Comparing plugins

Feature com.google.osdetector org.ysb33r.os

Attribute value for MachineArchitecture

×

Attribute value for OperatingSystemFamily

×

Extension name

osdetector

OS

Find executable in search path

×

Linux releases

×

Name of search path variable

×

Native classifier for artifacts

×

Shared library naming

×

Sibling settings plugin

×

Static library naming

×