Skip to content

Commit

Permalink
chore(deps): update to java 17 / pact 4.6.3 (pactflow#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F authored Dec 5, 2023
1 parent 65337de commit e785a81
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
distribution: 'temurin'
java-version: '17'
- name: Test for ${{ matrix.pact_provider }}
run: make test
env:
Expand Down
2 changes: 1 addition & 1 deletion .java-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
11.0
17.0
15 changes: 8 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
plugins {
id 'org.springframework.boot' version '2.2.2.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'org.springframework.boot' version '2.7.18'
id 'io.spring.dependency-management' version '1.1.4'
id 'java'
id "au.com.dius.pact" version "4.1.0"
id "au.com.dius.pact" version "4.6.3"
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
sourceCompatibility = '17'

repositories {
mavenCentral()
Expand All @@ -23,9 +23,9 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.kafka:spring-kafka'
testCompile 'au.com.dius:pact-jvm-consumer-junit5:4.0.10'
testCompile 'au.com.dius:pact-jvm-provider-spring:4.0.10'

testImplementation 'au.com.dius.pact.consumer:junit5:4.6.3'
testImplementation 'au.com.dius.pact.provider:spring:4.6.3'
testImplementation 'au.com.dius.pact.provider:gradle:4.6.3'
runtimeOnly 'com.h2database:h2'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Expand All @@ -36,4 +36,5 @@ dependencies {

test {
useJUnitPlatform()
testLogging.showStandardStreams = true // output pact verification logs to stdout
}
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import au.com.dius.pact.consumer.junit5.ProviderType;
import au.com.dius.pact.core.model.messaging.Message;
import au.com.dius.pact.core.model.messaging.MessagePact;
import au.com.dius.pact.core.model.PactSpecVersion; // required for v4.6.x to set pactVersion
import org.junit.jupiter.api.Test;

import java.util.HashMap;
Expand All @@ -23,7 +24,7 @@

@ExtendWith(PactConsumerTestExt.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
@PactTestFor(providerName = "pactflow-example-provider-java-kafka", providerType = ProviderType.ASYNCH)
@PactTestFor(providerName = "pactflow-example-provider-java-kafka", providerType = ProviderType.ASYNCH, pactVersion = PactSpecVersion.V3)
public class ProductsPactTest {
@Autowired
ProductEventListener listener;
Expand Down

0 comments on commit e785a81

Please sign in to comment.