Add default value for cloneOutputDirectory property

Closes gh-11969
This commit is contained in:
Marcus Da Coregio 2022-10-10 11:00:47 -03:00
parent e0843aabb1
commit e0f8c711d8
1 changed files with 1 additions and 4 deletions

View File

@ -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 {