From cd86f9d8c168115777b58284cec6bd7b9daad9ad Mon Sep 17 00:00:00 2001 From: Nils Andresen Date: Tue, 14 May 2024 22:32:54 +0200 Subject: [PATCH] (#111) add 'shouldRunPluginVerifier' which defaults to true --- src/Cake.IntelliJ.Recipe/Content/analyzing.cake | 1 + src/Cake.IntelliJ.Recipe/Content/parameters.cake | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Cake.IntelliJ.Recipe/Content/analyzing.cake b/src/Cake.IntelliJ.Recipe/Content/analyzing.cake index 651bd3e..c245256 100644 --- a/src/Cake.IntelliJ.Recipe/Content/analyzing.cake +++ b/src/Cake.IntelliJ.Recipe/Content/analyzing.cake @@ -21,6 +21,7 @@ BuildParameters.Tasks.AnalyzeTask = Task("IntelliJAnalyze") IntelliJBuildParameters.Tasks.RunPluginVerifierTask = Task("Run-Plugin-Verifier") .IsDependentOn("IntelliJBuild") + .WithCriteria(() => IntelliJBuildParameters.ShouldRunPluginVerifier, "Plugin Verifier is disabled") .Does((context, buildVersion) => { Gradle diff --git a/src/Cake.IntelliJ.Recipe/Content/parameters.cake b/src/Cake.IntelliJ.Recipe/Content/parameters.cake index cc4386f..7809163 100644 --- a/src/Cake.IntelliJ.Recipe/Content/parameters.cake +++ b/src/Cake.IntelliJ.Recipe/Content/parameters.cake @@ -16,6 +16,7 @@ public static class IntelliJBuildParameters public static FilePath IntegrationTestScriptPath { get; private set; } public static IntelliJBuildTasks Tasks { get; private set; } public static IntelliJBuildPaths Paths { get; private set; } + public static bool ShouldRunPluginVerifier { get; private set; } static IntelliJBuildParameters() { Tasks = new IntelliJBuildTasks(); @@ -38,6 +39,7 @@ public static class IntelliJBuildParameters context.Information("ShouldPublishPluginCiBuilds: {0}", ShouldPublishPluginCiBuilds); context.Information("PluginChannelGradleProperty: {0}", PluginChannelGradleProperty); context.Information("PluginVersionGradleProperty: {0}", PluginVersionGradleProperty); + context.Information("ShouldRunPluginVerifier: {0}", ShouldRunPluginVerifier); } public static void SetParameters( @@ -118,7 +120,8 @@ public static class IntelliJBuildParameters string marketplaceId = null, GradleLogLevel gradleVerbosity = GradleLogLevel.Default, DirectoryPath pluginBuildOutputPath = null, - DirectoryPath pluginPackOutputPath = null + DirectoryPath pluginPackOutputPath = null, + bool shouldRunPluginVerifier = true ) { if (context == null) @@ -227,5 +230,6 @@ public static class IntelliJBuildParameters PluginChannelGradleProperty = pluginChannelGradleProperty; PluginVersionGradleProperty = pluginVersionGradleProperty; Paths = IntelliJBuildPaths.GetPaths(context); + ShouldRunPluginVerifier = shouldRunPluginVerifier; } }