Added Contract converter + Yaml example

This commit is contained in:
Marcin Grzejszczak
2016-12-05 12:34:59 +01:00
parent 21458deefc
commit d63a557a29
8 changed files with 230 additions and 1 deletions

View File

@@ -17,6 +17,10 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-spec</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test-autoconfigure</artifactId>

View File

@@ -82,7 +82,7 @@ class ContractFileScanner {
files.sort().eachWithIndex { File file, int index ->
boolean excluded = matchesPattern(file, excludeMatchers)
if (!excluded) {
boolean contractFile = isContractFile(file);
boolean contractFile = isContractFile(file)
boolean included = includeMatcher ? file.absolutePath.matches(includeMatcher) : true
if (contractFile && included) {
Path path = file.toPath()