Class ConfigurationConfig.Builder

java.lang.Object
io.github.srdjanv.localgitdependency.config.impl.dependency.ConfigurationConfig.Builder
All Implemented Interfaces:
ConfigurationBuilder
Enclosing class:
ConfigurationConfig

public static class ConfigurationConfig.Builder extends Object implements ConfigurationBuilder
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    closure(groovy.lang.Closure closure)
    This closure will be passed to the DependencyHandler
    void
    configuration(String configuration)
    The target configuration for artifacts
    void
    exclude(String... notation)
    Same as the above but is used for exclusion, this should not be used alongside include
    void
    include(String... notation)
    If the dependency type is Jar then the plugin will use string contains to filter what jars are going to be added
    void
    include(Map<String,groovy.lang.Closure> notation)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • configuration

      public void configuration(String configuration)
      Description copied from interface: ConfigurationBuilder
      The target configuration for artifacts

      preferably this should be a runtimeOnly configuration

      Specified by:
      configuration in interface ConfigurationBuilder
      Parameters:
      configuration - Configuration name
      See Also:
      • ConfigurationContainer
    • closure

      public void closure(groovy.lang.Closure closure)
      Description copied from interface: ConfigurationBuilder
      This closure will be passed to the DependencyHandler

      If left empty the closure of the dependency builder will be used

      Specified by:
      closure in interface ConfigurationBuilder
      Parameters:
      closure - artifact closure
      See Also:
      • DependencyHandler
    • include

      public void include(String... notation)
      Description copied from interface: ConfigurationBuilder
      If the dependency type is Jar then the plugin will use string contains to filter what jars are going to be added

      If its any other type the string will act as a dependency notation, you can add only the artifact name and the plugin will add the group and version automatically. If the supplied string contains ':' the plugin will assume that is a full dependency notation(group:name:version). *

      Specified by:
      include in interface ConfigurationBuilder
      Parameters:
      notation - include notations
      See Also:
    • include

      public void include(Map<String,groovy.lang.Closure> notation)
      Specified by:
      include in interface ConfigurationBuilder
    • exclude

      public void exclude(String... notation)
      Description copied from interface: ConfigurationBuilder
      Same as the above but is used for exclusion, this should not be used alongside include
      Specified by:
      exclude in interface ConfigurationBuilder
      Parameters:
      notation - include notations
      See Also: