Class Artifact.Builder

java.lang.Object
io.github.srdjanv.localgitdependency.property.impl.Artifact.Builder
All Implemented Interfaces:
ArtifactBuilder
Enclosing class:
Artifact

public static class Artifact.Builder extends Object implements ArtifactBuilder
  • 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
    closure(String notation, groovy.lang.Closure closure)
    Same as above but its used for specific artifacts, the notation's must match for this to work
    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

    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: ArtifactBuilder
      The target configuration for artifacts

      preferably this should be a runtimeOnly configuration

      Specified by:
      configuration in interface ArtifactBuilder
      Parameters:
      configuration - Configuration name
      See Also:
      • ConfigurationContainer
    • include

      public void include(String... notation)
      Description copied from interface: ArtifactBuilder
      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 ArtifactBuilder
      Parameters:
      notation - include notations
      See Also:
    • exclude

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

      public void closure(groovy.lang.Closure closure)
      Description copied from interface: ArtifactBuilder
      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 ArtifactBuilder
      Parameters:
      closure - artifact closure
      See Also:
      • DependencyHandler
    • closure

      public void closure(String notation, groovy.lang.Closure closure)
      Description copied from interface: ArtifactBuilder
      Same as above but its used for specific artifacts, the notation's must match for this to work
      Specified by:
      closure in interface ArtifactBuilder
      closure - artifact closure
      See Also:
      • DependencyHandler