Skip to content

Commit 98ba476

Browse files
Fix
1 parent 798069c commit 98ba476

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

consumer_java/src/test/java/com/example/AbstractTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
import com.fasterxml.jackson.databind.ObjectMapper;
44

55
import org.junit.jupiter.api.BeforeEach;
6+
7+
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
68
import org.springframework.boot.test.json.JacksonTester;
9+
import org.springframework.cloud.stream.binder.test.TestChannelBinderConfiguration;
710

811
/**
912
* @author Marcin Grzejszczak
1013
*/
14+
@ImportAutoConfiguration(TestChannelBinderConfiguration.class)
1115
public abstract class AbstractTest {
1216

1317
public JacksonTester<Person> json;

consumer_kotlin_ftw/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212

1313
group = "com.example"
1414
version = "0.0.1-SNAPSHOT"
15-
java.sourceCompatibility = JavaVersion.VERSION_11
15+
java.sourceCompatibility = JavaVersion.VERSION_17
1616

1717

1818
repositories {
@@ -79,7 +79,7 @@ tasks {
7979
tasks.withType<KotlinCompile>().configureEach {
8080
kotlinOptions {
8181
freeCompilerArgs = listOf("-Xjsr305=strict")
82-
jvmTarget = "11"
82+
jvmTarget = "17"
8383
}
8484
}
8585

producer_kotlin_ftw/build.gradle.kts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ plugins {
1414

1515
group = "com.example"
1616
version = "0.0.1-SNAPSHOT"
17-
java.sourceCompatibility = JavaVersion.VERSION_11
17+
java.sourceCompatibility = JavaVersion.VERSION_17
1818

1919

2020
repositories {
@@ -36,7 +36,7 @@ dependencyManagement {
3636
}
3737
}
3838

39-
39+
extra["rest-assured.version"] = "5.2.1"
4040

4141
dependencies {
4242
implementation("org.springframework.boot:spring-boot-starter-web")
@@ -60,6 +60,7 @@ dependencies {
6060

6161

6262
contracts {
63+
contractsDslDir.set(file("src/test/resources/contracts"))
6364
testFramework.set(org.springframework.cloud.contract.verifier.config.TestFramework.JUNIT5)
6465
packageWithBaseClasses.set("com.example.fraud")
6566
}
@@ -95,7 +96,7 @@ tasks {
9596
tasks.withType<KotlinCompile>().configureEach {
9697
kotlinOptions {
9798
freeCompilerArgs = listOf("-Xjsr305=strict")
98-
jvmTarget = "11"
99+
jvmTarget = "17"
99100
}
100101
}
101102

producer_kotlin_ftw/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<spring-cloud.version>2022.0.0-SNAPSHOT</spring-cloud.version>
2626
<!-- Needs to align the version to what's there in Contract -->
2727
<kotlin.version>1.6.21</kotlin.version>
28+
<rest-assured.version>5.2.1</rest-assured.version>
2829
</properties>
2930

3031
<dependencies>

0 commit comments

Comments
 (0)