Creating missing folders if not present
without this fix sometimes when the folders are not created then exceptions occur while trying to process the project. Related to #159
This commit is contained in:
@@ -100,9 +100,12 @@ class SpringCloudContractVerifierGradlePlugin implements Plugin<Project> {
|
||||
private void setConfigurationDefaults(ContractVerifierExtension extension) {
|
||||
extension.with {
|
||||
generatedTestSourcesDir = generatedTestSourcesDir ?: project.file("${project.buildDir}/generated-test-sources/contracts")
|
||||
generatedTestSourcesDir.mkdirs()
|
||||
contractsDslDir = contractsDslDir ?: defaultContractsDir() //TODO: Use sourceset
|
||||
contractsDslDir.mkdirs()
|
||||
basePackageForTests = basePackageForTests ?: 'org.springframework.cloud.contract.verifier.tests'
|
||||
stubsOutputDir = stubsOutputDir ?: project.file("${project.buildDir}/stubs/")
|
||||
stubsOutputDir.mkdirs()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user