Skip tasks when input directory is empty (#1530)

This commit is contained in:
Shannon Pamperl
2020-10-17 00:36:20 -05:00
committed by GitHub
parent 1bfa966550
commit 9df4da4ef5
4 changed files with 17 additions and 0 deletions

View File

@@ -4,6 +4,13 @@ plugins {
id "io.spring.dependency-management"
id "maven-publish"
id "maven"
/**
* While the SCC Gradle plugin is not strictly necessary for this project.
* It is included to ensure that if the contractDslDir does not exist, then
* the plugin reports "NO-SOURCE" for associated tasks, rather than resulting
* in an error for the end user.
*/
id "org.springframework.cloud.contract"
}
group = 'com.example'
@@ -35,6 +42,10 @@ dependencies {
testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
contracts {
failOnNoContracts = false
}
test {
useJUnitPlatform()
systemProperty 'spring.profiles.active', 'gradle'