Skip to content

Commit

Permalink
Merge pull request #120 from nils-a/feature/GH-111
Browse files Browse the repository at this point in the history
(#111) add 'shouldRunPluginVerifier'
  • Loading branch information
nils-a authored May 14, 2024
2 parents e297842 + cd86f9d commit 22d214b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Cake.IntelliJ.Recipe/Content/analyzing.cake
Original file line number Diff line number Diff line change
Expand Up @@ -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<BuildVersion>((context, buildVersion) =>
{
Gradle
Expand Down
6 changes: 5 additions & 1 deletion src/Cake.IntelliJ.Recipe/Content/parameters.cake
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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(
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -227,5 +230,6 @@ public static class IntelliJBuildParameters
PluginChannelGradleProperty = pluginChannelGradleProperty;
PluginVersionGradleProperty = pluginVersionGradleProperty;
Paths = IntelliJBuildPaths.GetPaths(context);
ShouldRunPluginVerifier = shouldRunPluginVerifier;
}
}

0 comments on commit 22d214b

Please sign in to comment.