Interface AutoconfigureRuleBuilder
-
- All Implemented Interfaces:
public interface AutoconfigureRuleBuilder
-
-
Method Summary
Modifier and Type Method Description abstract Unitmatching(Spec<in ModuleVersionIdentifier> predicate)By default the rule would apply to all modules specified in triggerDependency. abstract UnitcompileAndRuntime(Object dependencyNotation)Adds a dependency to the Maven's compileandruntimescopes.abstract UnitcompileAndRuntime(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)Adds a dependency to the Maven's compileandruntimescopes.abstract UnitcompileOnly(Object dependencyNotation)Adds a dependency to the Maven's compilescope only.abstract UnitcompileOnly(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)Adds a dependency to the Maven's compilescope only.abstract UnitruntimeOnly(Object dependencyNotation)Adds a dependency to the Maven's runtimescope only.abstract UnitruntimeOnly(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)Adds a dependency to the Maven's runtimescope only.-
-
Method Detail
-
matching
abstract Unit matching(Spec<in ModuleVersionIdentifier> predicate)
By default the rule would apply to all modules specified in triggerDependency. This method sets a filter to distinguish adapters like
cucumber2-jvmandcucumber3-jvm. Note: each call overwrites the filter.
-
compileAndRuntime
abstract Unit compileAndRuntime(Object dependencyNotation)
Adds a dependency to the Maven's
compileandruntimescopes.
-
compileAndRuntime
abstract Unit compileAndRuntime(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)
Adds a dependency to the Maven's
compileandruntimescopes.
-
compileOnly
abstract Unit compileOnly(Object dependencyNotation)
Adds a dependency to the Maven's
compilescope only.
-
compileOnly
abstract Unit compileOnly(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)
Adds a dependency to the Maven's
compilescope only.
-
runtimeOnly
abstract Unit runtimeOnly(Object dependencyNotation)
Adds a dependency to the Maven's
runtimescope only.
-
runtimeOnly
abstract Unit runtimeOnly(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)
Adds a dependency to the Maven's
runtimescope only.
-
-
-
-