Interface TestedComponentDependency.Modifier

Enclosing interface:
TestedComponentDependency

public static interface TestedComponentDependency.Modifier
Represent the dependency modifier for the tested component. The companion plugin register the modifier on Project#dependencies and CppTestSuite#dependencies.
  • Method Details

    • modify

      TestedComponentDependency modify(org.gradle.api.artifacts.ProjectDependency dependency)
      Modify a project dependency.
      Parameters:
      dependency - the project dependency to modify
      Returns:
      a tested component dependency that can be further modified
    • modify

      TestedComponentDependency modify(org.gradle.api.Project project)
      Modify a project dependency.
      Parameters:
      project - the project dependency to modify
      Returns:
      a tested component dependency that can be further modified
    • forDependencies

      static TestedComponentDependency.Modifier forDependencies(org.gradle.api.artifacts.dsl.DependencyHandler dependencies)
      Retries this modifier for Project#dependencies.
      Parameters:
      dependencies - the project dependencies handler
      Returns:
      the modifier
    • forDependencies

      static TestedComponentDependency.Modifier forDependencies(org.gradle.language.ComponentDependencies dependencies)
      Retries this modifier for CppUnitTest#dependencies.
      Parameters:
      dependencies - the C++ unit test dependencies handler
      Returns:
      the modifier