Class DefaultAutoconfigureRuleBuilder
-
- All Implemented Interfaces:
-
io.qameta.allure.gradle.adapter.autoconfigure.AutoconfigureRuleBuilder
public final class DefaultAutoconfigureRuleBuilder implements AutoconfigureRuleBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private final StringtriggerDependencyprivate final Provider<Boolean>enabled
-
Constructor Summary
Constructors Constructor Description DefaultAutoconfigureRuleBuilder(String triggerDependency, Provider<Boolean> enabled)
-
Method Summary
Modifier and Type Method Description final StringgetTriggerDependency()final Provider<Boolean>getEnabled()Unitmatching(Spec<in ModuleVersionIdentifier> predicate)By default the rule would apply to all modules specified in triggerDependency. UnitcompileAndRuntime(Object dependencyNotation)Adds a dependency to the Maven's compileandruntimescopes.UnitcompileAndRuntime(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)Adds a dependency to the Maven's compileandruntimescopes.UnitcompileOnly(Object dependencyNotation)Adds a dependency to the Maven's compilescope only.UnitcompileOnly(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)Adds a dependency to the Maven's compilescope only.UnitruntimeOnly(Object dependencyNotation)Adds a dependency to the Maven's runtimescope only.UnitruntimeOnly(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)Adds a dependency to the Maven's runtimescope only.final AutoconfigureRulebuild()-
-
Method Detail
-
getTriggerDependency
final String getTriggerDependency()
-
getEnabled
final Provider<Boolean> getEnabled()
-
matching
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
Unit compileAndRuntime(Object dependencyNotation)
Adds a dependency to the Maven's
compileandruntimescopes.
-
compileAndRuntime
Unit compileAndRuntime(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)
Adds a dependency to the Maven's
compileandruntimescopes.
-
compileOnly
Unit compileOnly(Object dependencyNotation)
Adds a dependency to the Maven's
compilescope only.
-
compileOnly
Unit compileOnly(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)
Adds a dependency to the Maven's
compilescope only.
-
runtimeOnly
Unit runtimeOnly(Object dependencyNotation)
Adds a dependency to the Maven's
runtimescope only.
-
runtimeOnly
Unit runtimeOnly(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)
Adds a dependency to the Maven's
runtimescope only.
-
build
final AutoconfigureRule build()
-
-
-
-