-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
110 lines (93 loc) · 3.86 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
buildscript {
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: "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.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.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: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 'org.wiremock.integrations:wiremock-spring-boot:3.0.2'
}
bootJar {
enabled = false
}
jar {
enabled = true
}
})