Class PlatformSpecificBuildPlugin

  • All Implemented Interfaces:
    Plugin<Settings>

    public class PlatformSpecificBuildPlugin
    extends Object
    implements Plugin<Settings>
    In order to detect the underlying operating system and architecture, it is necessary to to read various system properties and environment variables, which breaks the Gradle configuration cache. But, if you apply `com.diffplug.configuration-cache-for-platform-specific-build` in your `settings.gradle`, then you can call OS.getRunning() and OS.getNative() and behind the scenes it will use the appropriate APIs which don't break the configuration cache.
    • Constructor Detail

      • PlatformSpecificBuildPlugin

        public PlatformSpecificBuildPlugin()