Fixed slf4j version; fixes gh-1909

This commit is contained in:
Marcin Grzejszczak
2023-06-26 09:02:42 +02:00
parent d85e522a84
commit c975bbaf50
2 changed files with 7 additions and 2 deletions

View File

@@ -150,8 +150,7 @@ public class Contract {
public static void assertContract(Contract dsl) {
if (dsl.getRequest() != null) {
if (dsl.request.getUrl() == null && dsl.request.getUrlPath() == null) {
throw new IllegalStateException(
"URL is missing for HTTP contract");
throw new IllegalStateException("URL is missing for HTTP contract");
}
if (dsl.request.getMethod() == null) {
throw new IllegalStateException("Method is missing for HTTP contract");

View File

@@ -41,6 +41,7 @@
<plexus-component-metadata.version>2.0.0</plexus-component-metadata.version>
<maven-plugin-testing-harness.version>3.3.0</maven-plugin-testing-harness.version>
<maven-shared-incremental.version>1.1</maven-shared-incremental.version>
<slf4j-api.version>2.0.5</slf4j-api.version>
</properties>
<inceptionYear>2016</inceptionYear>
@@ -271,6 +272,11 @@
</reporting>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j-api.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-verifier</artifactId>