Interface LibraryDependencies

All Superinterfaces:
ComponentDependencies

public interface LibraryDependencies extends ComponentDependencies
Allows the API and implementation dependencies of a library to be specified.
Since:
4.6
  • Method Details

    • api

      void api(Object notation)
      Adds an API dependency to this library. An API dependency is made visible to consumers that are compiled against this component.
      Parameters:
      notation - The dependency notation, as per DependencyHandler.create(Object).
    • api

      void api(Object notation, Action<? super ExternalModuleDependency> action)
      Adds an API dependency to this library. An API dependency is made visible to consumers that are compiled against this component.
      Parameters:
      notation - The dependency notation, as per DependencyHandler.create(Object).
      action - The action to run to configure the dependency.