Class DefaultAutoconfigureRuleBuilder

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getTriggerDependency()
      final Provider<Boolean> getEnabled()
      Unit matching(Spec<in ModuleVersionIdentifier> predicate) By default the rule would apply to all modules specified in triggerDependency.
      Unit compileAndRuntime(Object dependencyNotation) Adds a dependency to the Maven's compile and runtime scopes.
      Unit compileAndRuntime(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction) Adds a dependency to the Maven's compile and runtime scopes.
      Unit compileOnly(Object dependencyNotation) Adds a dependency to the Maven's compile scope only.
      Unit compileOnly(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction) Adds a dependency to the Maven's compile scope only.
      Unit runtimeOnly(Object dependencyNotation) Adds a dependency to the Maven's runtime scope only.
      Unit runtimeOnly(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction) Adds a dependency to the Maven's runtime scope only.
      final AutoconfigureRule build()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultAutoconfigureRuleBuilder

        DefaultAutoconfigureRuleBuilder(String triggerDependency, Provider<Boolean> enabled)
    • Method Detail

      • 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-jvm and cucumber3-jvm. Note: each call overwrites the filter.

      • compileAndRuntime

         Unit compileAndRuntime(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)

        Adds a dependency to the Maven's compile and runtime scopes.

      • compileOnly

         Unit compileOnly(Object dependencyNotation)

        Adds a dependency to the Maven's compile scope only.

      • compileOnly

         Unit compileOnly(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)

        Adds a dependency to the Maven's compile scope only.

      • runtimeOnly

         Unit runtimeOnly(Object dependencyNotation)

        Adds a dependency to the Maven's runtime scope only.

      • runtimeOnly

         Unit runtimeOnly(Object dependencyNotation, Action<in DependencyMetadata<?>> configureAction)

        Adds a dependency to the Maven's runtime scope only.