Bumped libs

fixes gh-1193
fixes gh-1194
fixes gh-1195
fixes gh-1196
fixes gh-1197
fixes gh-1198
This commit is contained in:
Marcin Grzejszczak
2019-09-04 08:56:52 +02:00
parent bd64cf82ae
commit 796103cb48
15 changed files with 21 additions and 17 deletions

View File

@@ -15,6 +15,7 @@
<description>Spring Cloud Contract Stub Runner Moco</description>
<properties>
<java.version>1.8</java.version>
<moco-runner.version>1.0.0</moco-runner.version>
</properties>
<dependencies>
<dependency>
@@ -24,7 +25,7 @@
<dependency>
<groupId>com.github.dreamhead</groupId>
<artifactId>moco-runner</artifactId>
<version>0.11.1</version>
<version>${moco-runner.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>

View File

@@ -19,12 +19,14 @@ package org.springframework.cloud.contract.stubrunner.provider.moco
import com.github.dreamhead.moco.bootstrap.arg.HttpArgs
import com.github.dreamhead.moco.runner.JsonRunner
import com.github.dreamhead.moco.runner.RunnerSetting
import groovy.transform.CompileStatic
import groovy.util.logging.Commons
import org.springframework.cloud.contract.stubrunner.HttpServerStub
import org.springframework.util.SocketUtils
@Commons
@CompileStatic
class MocoHttpServerStub implements HttpServerStub {
private boolean started
@@ -70,7 +72,7 @@ class MocoHttpServerStub implements HttpServerStub {
.collect {
log.info("Trying to parse [${it.name}]")
try {
return RunnerSetting.aRunnerSetting().withStream(it.newInputStream()).
return RunnerSetting.aRunnerSetting().addStream(it.newInputStream()).
build()
}
catch (Exception e) {