Class OptionalPlugin

java.lang.Object
io.freefair.gradle.plugins.maven.OptionalPlugin
All Implemented Interfaces:
Plugin<Project>

public class OptionalPlugin extends Object implements Plugin<Project>
Plugin that provides an optional configuration for optional dependencies.

Creates an optional configuration. The compileOnly, testCompileOnly, and testRuntimeOnly configurations all extend from it, so anything declared as optional is available at compile time and for tests but is excluded from the runtime classpath and from published dependency metadata. This is similar to Maven's <optional>true</optional> dependency scope.

  • Constructor Details

    • OptionalPlugin

      public OptionalPlugin()
  • Method Details