Skip to content

Commit e0f8c71

Browse files
Add default value for cloneOutputDirectory property
Closes gh-11969
1 parent e0843aa commit e0f8c71

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,9 @@ nohttp {
203203
}
204204

205205
tasks.register('cloneSamples', IncludeRepoTask) {
206-
if (!project.hasProperty("cloneOutputDirectory")) {
207-
throw new GradleException("Required parameter 'cloneOutputDirectory' not found")
208-
}
209206
repository = 'spring-projects/spring-security-samples'
210207
ref = samplesBranch
211-
outputDirectory = project.file("$cloneOutputDirectory")
208+
outputDirectory = project.hasProperty("cloneOutputDirectory") ? project.file("$cloneOutputDirectory") : project.file("build/samples")
212209
}
213210

214211
s101 {

0 commit comments

Comments
 (0)