From a4490a8b846fbf0697719ab3a9e4d6335fde8834 Mon Sep 17 00:00:00 2001 From: Andrew Oberstar Date: Sat, 22 Apr 2023 15:12:17 -0500 Subject: [PATCH] minor: Support the Scope enum on the extension Fixes #175 --- .../ajoberstar/reckon/gradle/ReckonExtension.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/reckon-gradle/src/main/java/org/ajoberstar/reckon/gradle/ReckonExtension.java b/reckon-gradle/src/main/java/org/ajoberstar/reckon/gradle/ReckonExtension.java index 01d2b8e..663c413 100644 --- a/reckon-gradle/src/main/java/org/ajoberstar/reckon/gradle/ReckonExtension.java +++ b/reckon-gradle/src/main/java/org/ajoberstar/reckon/gradle/ReckonExtension.java @@ -66,11 +66,19 @@ public DirectoryProperty getRepoDirectory() { } public void setDefaultInferredScope(String scope) { - this.reckonerBuilder.defaultInferredScope(Scope.from(scope)); + setDefaultInferredScope(Scope.from(scope)); + } + + public void setDefaultInferredScope(Scope scope) { + this.reckonerBuilder.defaultInferredScope(scope); } public void setParallelBranchScope(String scope) { - this.reckonerBuilder.parallelBranchScope(Scope.from(scope)); + setParallelBranchScope(Scope.from(scope)); + } + + public void setParallelBranchScope(Scope scope) { + this.reckonerBuilder.parallelBranchScope(scope); } public void stages(String... stages) {