From e0f8c711d8437d4e7c19422a2c6ee0098798f788 Mon Sep 17 00:00:00 2001 From: Marcus Da Coregio Date: Mon, 10 Oct 2022 11:00:47 -0300 Subject: [PATCH] Add default value for cloneOutputDirectory property Closes gh-11969 --- build.gradle | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index a43f7ec591..1da38f9de6 100644 --- a/build.gradle +++ b/build.gradle @@ -203,12 +203,9 @@ nohttp { } tasks.register('cloneSamples', IncludeRepoTask) { - if (!project.hasProperty("cloneOutputDirectory")) { - throw new GradleException("Required parameter 'cloneOutputDirectory' not found") - } repository = 'spring-projects/spring-security-samples' ref = samplesBranch - outputDirectory = project.file("$cloneOutputDirectory") + outputDirectory = project.hasProperty("cloneOutputDirectory") ? project.file("$cloneOutputDirectory") : project.file("build/samples") } s101 {