From 8b6d68eafaae98eb93d65a599bbcf9b749bf970d Mon Sep 17 00:00:00 2001 From: Zac Sweers Date: Mon, 11 Dec 2023 18:40:13 -0500 Subject: [PATCH] Expose global accessor --- .../src/main/kotlin/slack/gradle/avoidance/SkippyExtension.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slack-plugin/src/main/kotlin/slack/gradle/avoidance/SkippyExtension.kt b/slack-plugin/src/main/kotlin/slack/gradle/avoidance/SkippyExtension.kt index 4dfd250b9..b94801644 100644 --- a/slack-plugin/src/main/kotlin/slack/gradle/avoidance/SkippyExtension.kt +++ b/slack-plugin/src/main/kotlin/slack/gradle/avoidance/SkippyExtension.kt @@ -46,6 +46,10 @@ public abstract class SkippyExtension @Inject constructor(objects: ObjectFactory configs.maybeCreate(GLOBAL_TOOL) } + public fun global(action: Action) { + action.execute(configs.maybeCreate(GLOBAL_TOOL)) + } + public fun config(name: String, action: Action) { action.execute(configs.maybeCreate(name)) }