Skip to content

Commit

Permalink
feat: upgrading dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Oct 4, 2024
1 parent eea3951 commit b2f8c97
Show file tree
Hide file tree
Showing 15 changed files with 130 additions and 126 deletions.
202 changes: 96 additions & 106 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,120 +1,110 @@
apply plugin: 'java-library'

buildscript {
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
classpath 'se.bjurr.gradle:gradle-scripts:2.+'
classpath "org.springframework.boot:spring-boot-gradle-plugin:3.2.5"
}
repositories {
maven { url "https://plugins.gradle.org/m2/" }
mavenCentral()
mavenLocal()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:3.3.4'
classpath "se.bjurr.gradle:conventional-release-gradle-plugin:0.+"
classpath "se.bjurr.gradle:update-versions-gradle-plugin:0.+"
classpath "se.bjurr.gradle:java-convention-gradle-plugin:0.+"
}
}

apply plugin: "se.bjurr.gradle.conventional-release"

allprojects {
apply plugin: 'java-library'

project.ext.buildConfig = [
repoType: "DEFAULT",
sourceCompatibility: 17,
targetCompatibility: 17,
staticCodeAnalysis: [
maxViolations: 0
]
]
apply from: project.buildscript.classLoader.getResource('main.gradle').toURI()

test {
useJUnitPlatform()
}

dependencies {
testImplementation 'org.assertj:assertj-core:3.25.3'
testImplementation platform('org.junit:junit-bom:5.10.2')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.junit.platform:junit-platform-launcher'
}
apply plugin: "se.bjurr.gradle.java-convention"
apply plugin: "se.bjurr.gradle.update-versions"

dependencies {
testImplementation 'org.assertj:assertj-core:3.26.3'
testImplementation platform('org.junit:junit-bom:5.11.2')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.junit.platform:junit-platform-launcher'
}
}

project('wiremock-pact-lib', {
def classpathTest = sourceSets.create('classpathTest')
configurations[classpathTest.implementationConfigurationName].extendsFrom(configurations.runtimeClasspath)
def classpathTestTask = tasks.register('classpathTest', Test) {
description = 'Tests that the excluded transitives does not break the library.'
group = 'verification'
useJUnitPlatform()

testClassesDirs = classpathTest.output.classesDirs
classpath = configurations[classpathTest.runtimeClasspathConfigurationName] + classpathTest.output

shouldRunAfter(tasks.named('test'))
}

tasks.named('check') {
dependsOn(classpathTestTask)
}

dependencies {
compileOnly 'org.wiremock:wiremock:3.5.4'
implementation('au.com.dius.pact.core:model:4.6.9') {
exclude group: "org.apache.groovy", module: "groovy-xml"
exclude group: "org.apache.commons", module: "commons-collections4"
exclude group: "org.apache.httpcomponents.client5", module: "httpclient5"
exclude group: "org.apache.httpcomponents.client5", module: "httpclient5-fluent"
exclude group: "com.google.guava", module: "guava"
exclude group: "commons-codec", module: "commons-codec"
exclude group: "io.ktor", module: "ktor-http-jvm"
exclude group: "com.github.mifmif", module: "generex"
exclude group: "javax.mail", module: "mail"
exclude group: "commons-beanutils", module: "commons-beanutils"
exclude group: "au.com.dius.pact.core", module: "pactbroker"
}

testImplementation 'org.wiremock:wiremock:3.5.4'
testImplementation "io.rest-assured:rest-assured:5.4.0"

classpathTestImplementation project
classpathTestImplementation 'org.wiremock:wiremock:3.5.4'
classpathTestImplementation 'org.assertj:assertj-core:3.25.3'
classpathTestImplementation platform('org.junit:junit-bom:5.10.2')
classpathTestImplementation 'org.junit.jupiter:junit-jupiter'
classpathTestImplementation 'org.junit.platform:junit-platform-launcher'
}
def classpathTest = sourceSets.create('classpathTest')
configurations[classpathTest.implementationConfigurationName].extendsFrom(configurations.runtimeClasspath)
def classpathTestTask = tasks.register('classpathTest', Test) {
description = 'Tests that the excluded transitives does not break the library.'
group = 'verification'
useJUnitPlatform()

testClassesDirs = classpathTest.output.classesDirs
classpath = configurations[classpathTest.runtimeClasspathConfigurationName] + classpathTest.output

shouldRunAfter(tasks.named('test'))
}

tasks.named('check') {
dependsOn(classpathTestTask)
}

dependencies {
compileOnly 'org.wiremock:wiremock:3.9.1'
implementation('au.com.dius.pact.core:model:4.6.14') {
exclude group: "org.apache.groovy", module: "groovy-xml"
exclude group: "org.apache.commons", module: "commons-collections4"
exclude group: "org.apache.httpcomponents.client5", module: "httpclient5"
exclude group: "org.apache.httpcomponents.client5", module: "httpclient5-fluent"
exclude group: "com.google.guava", module: "guava"
exclude group: "commons-codec", module: "commons-codec"
exclude group: "io.ktor", module: "ktor-http-jvm"
exclude group: "com.github.mifmif", module: "generex"
exclude group: "javax.mail", module: "mail"
exclude group: "commons-beanutils", module: "commons-beanutils"
exclude group: "au.com.dius.pact.core", module: "pactbroker"
}

testImplementation 'org.wiremock:wiremock:3.9.1'
testImplementation 'io.rest-assured:rest-assured:5.5.0'

classpathTestImplementation project
classpathTestImplementation 'org.wiremock:wiremock:3.9.1'
classpathTestImplementation 'org.assertj:assertj-core:3.26.3'
classpathTestImplementation platform('org.junit:junit-bom:5.11.2')
classpathTestImplementation 'org.junit.jupiter:junit-jupiter'
classpathTestImplementation 'org.junit.platform:junit-platform-launcher'
}
})

project('wiremock-pact-extension-junit5', {
dependencies {
api project(':wiremock-pact-lib')
compileOnly platform('org.junit:junit-bom:5.10.2')
compileOnly 'org.junit.jupiter:junit-jupiter'
compileOnly 'org.wiremock:wiremock:3.5.4'

testImplementation 'org.wiremock:wiremock:3.5.4'
}
dependencies {
api project(':wiremock-pact-lib')
compileOnly platform('org.junit:junit-bom:5.11.2')
compileOnly 'org.junit.jupiter:junit-jupiter'
compileOnly 'org.wiremock:wiremock:3.9.1'

testImplementation 'org.wiremock:wiremock:3.9.1'
}
})

project('wiremock-pact-example-springboot-app', {
apply plugin: "org.springframework.boot"
apply plugin: 'io.spring.dependency-management'

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'jakarta.ws.rs:jakarta.ws.rs-api:3.1.0'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.17.0'
implementation 'com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-json-provider:2.17.0'
implementation 'org.jboss.resteasy:resteasy-client:6.2.8.Final'

testImplementation project(':wiremock-pact-extension-junit5')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'com.maciejwalkowiak.spring:wiremock-spring-boot:2.1.2'
}

bootJar {
enabled = false
}

jar {
enabled = true
}
apply plugin: "org.springframework.boot"
apply plugin: 'io.spring.dependency-management'

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'jakarta.ws.rs:jakarta.ws.rs-api:4.0.0'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.18.0'
implementation 'com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-json-provider:2.18.0'
implementation 'org.jboss.resteasy:resteasy-client:6.2.10.Final'

testImplementation project(':wiremock-pact-extension-junit5')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'com.maciejwalkowiak.spring:wiremock-spring-boot:2.1.3'
}

bootJar {
enabled = false
}

jar {
enabled = true
}
})
5 changes: 3 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#Mon Sep 16 17:49:33 CEST 2024
#
#Fri Oct 04 17:52:54 CEST 2024
description="Transform Wiremock mappings to PACT."
version=0.6.1
group=se.bjurr.wiremockpact
version=0.6.2
10 changes: 9 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
rootProject.name = 'wiremock-pact'
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
}

rootProject.name = 'wiremock-pact'

include 'wiremock-pact-lib', 'wiremock-pact-extension-junit5', 'wiremock-pact-example-springboot-app'
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"metadata": {
"wireMockPactSettings": {
"provider": "some-other-system",
"providerStates": ["state1"]
"providerStates": [
"state1"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
"uuid": "d68fb4e2-48ed-40d2-bc73-0a18f54f3ece",
"metadata": {
"wireMockPactSettings": {
"providerStates": ["state1", "state2"]
"providerStates": [
"state1",
"state2"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public static void after() {
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static void after() {
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down Expand Up @@ -206,7 +206,7 @@ public static void after() {
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void testThatSingleGetRequestCanGeneratePact() {
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down Expand Up @@ -197,7 +197,7 @@ public void testThatSingleGetRequestCanGeneratePact_3_invocations() {
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down Expand Up @@ -353,7 +353,7 @@ public void testThatSingleGetRequestCanGeneratePact_3_invocations_query() {
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void testThatSingleHeaderIsRecorded() {
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void testRequestNotMatching() {
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void testThatSingleGetRequestCanGeneratePact() {
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down Expand Up @@ -249,7 +249,7 @@ public void testThatSingleGetRequestCanGeneratePact_3_invocations() {
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down Expand Up @@ -444,7 +444,7 @@ public void testThatSingleGetRequestCanGeneratePact_3_invocations_query() {
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void testThatSingleHeaderIsRecorded() {
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void testThatProviderStateIsSetFromScenario() {
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
"version": "4.6.14"
},
"pactSpecification": {
"version": "4.0"
Expand Down

0 comments on commit b2f8c97

Please sign in to comment.