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 that extends compileOnly, testCompileOnly, and testRuntimeOnly. This allows declaring dependencies that are:

  • Available at compile time but not included in the runtime classpath
  • Available for test compilation and execution
  • Similar to Maven's <optional>true</optional> dependency scope
  • Constructor Details

    • OptionalPlugin

      public OptionalPlugin()
  • Method Details