Interface ArtifactBuilder

All Known Implementing Classes:
Artifact.Builder

public interface ArtifactBuilder
  • 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
  • Method Details

    • configuration

      void configuration(String configuration)
      The target configuration for artifacts

      preferably this should be a runtimeOnly configuration

      Parameters:
      configuration - Configuration name
      See Also:
      • ConfigurationContainer
    • 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

      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). *

      Parameters:
      notation - include notations
      See Also:
    • exclude

      void exclude(String... notation)
      Same as the above but is used for exclusion, this should not be used alongside include
      Parameters:
      notation - include notations
      See Also:
    • closure

      void closure(groovy.lang.Closure closure)
      This closure will be passed to the DependencyHandler

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

      Parameters:
      closure - artifact closure
      See Also:
      • DependencyHandler
    • closure

      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
      Parameters:
      closure - artifact closure
      See Also:
      • DependencyHandler