Package dev.nokee.companion
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 Summary
Modifier and TypeMethodDescriptionforDependencies(org.gradle.api.artifacts.dsl.DependencyHandler dependencies) Retries this modifier forProject#dependencies.forDependencies(org.gradle.language.ComponentDependencies dependencies) Retries this modifier forCppUnitTest#dependencies.modify(org.gradle.api.artifacts.ProjectDependency dependency) Modify a project dependency.modify(org.gradle.api.Project project) Modify a project dependency.
-
Method Details
-
modify
Modify a project dependency.- Parameters:
dependency- the project dependency to modify- Returns:
- a tested component dependency that can be further modified
-
modify
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 forProject#dependencies.- Parameters:
dependencies- the project dependencies handler- Returns:
- the modifier
-
forDependencies
static TestedComponentDependency.Modifier forDependencies(org.gradle.language.ComponentDependencies dependencies) Retries this modifier forCppUnitTest#dependencies.- Parameters:
dependencies- the C++ unit test dependencies handler- Returns:
- the modifier
-