1
- apply plugin : ' java-library'
2
-
3
1
buildscript {
4
- repositories {
5
- mavenCentral()
6
- mavenLocal()
7
- }
8
- dependencies {
9
- classpath ' se.bjurr.gradle:gradle-scripts:2.+'
10
- classpath " org.springframework.boot:spring-boot-gradle-plugin:3.2.5"
11
- }
2
+ repositories {
3
+ maven { url " https://plugins.gradle.org/m2/" }
4
+ mavenCentral()
5
+ mavenLocal()
6
+ }
7
+ dependencies {
8
+ classpath ' org.springframework.boot:spring-boot-gradle-plugin:3.3.4'
9
+ classpath " se.bjurr.gradle:conventional-release-gradle-plugin:0.+"
10
+ classpath " se.bjurr.gradle:update-versions-gradle-plugin:0.+"
11
+ classpath " se.bjurr.gradle:java-convention-gradle-plugin:0.+"
12
+ }
12
13
}
13
14
15
+ apply plugin : " se.bjurr.gradle.conventional-release"
16
+
14
17
allprojects {
15
- apply plugin : ' java-library'
16
-
17
- project. ext. buildConfig = [
18
- repoType : " DEFAULT" ,
19
- sourceCompatibility : 17 ,
20
- targetCompatibility : 17 ,
21
- staticCodeAnalysis : [
22
- maxViolations : 0
23
- ]
24
- ]
25
- apply from : project. buildscript. classLoader. getResource(' main.gradle' ). toURI()
26
-
27
- test {
28
- useJUnitPlatform()
29
- }
30
-
31
- dependencies {
32
- testImplementation ' org.assertj:assertj-core:3.25.3'
33
- testImplementation platform(' org.junit:junit-bom:5.10.2' )
34
- testImplementation ' org.junit.jupiter:junit-jupiter'
35
- testImplementation ' org.junit.platform:junit-platform-launcher'
36
- }
18
+ apply plugin : " se.bjurr.gradle.java-convention"
19
+ apply plugin : " se.bjurr.gradle.update-versions"
20
+
21
+ dependencies {
22
+ testImplementation ' org.assertj:assertj-core:3.26.3'
23
+ testImplementation platform(' org.junit:junit-bom:5.11.2' )
24
+ testImplementation ' org.junit.jupiter:junit-jupiter'
25
+ testImplementation ' org.junit.platform:junit-platform-launcher'
26
+ }
37
27
}
38
28
39
29
project(' wiremock-pact-lib' , {
40
- def classpathTest = sourceSets. create(' classpathTest' )
41
- configurations[classpathTest. implementationConfigurationName]. extendsFrom(configurations. runtimeClasspath)
42
- def classpathTestTask = tasks. register(' classpathTest' , Test ) {
43
- description = ' Tests that the excluded transitives does not break the library.'
44
- group = ' verification'
45
- useJUnitPlatform()
46
-
47
- testClassesDirs = classpathTest. output. classesDirs
48
- classpath = configurations[classpathTest. runtimeClasspathConfigurationName] + classpathTest. output
49
-
50
- shouldRunAfter(tasks. named(' test' ))
51
- }
52
-
53
- tasks. named(' check' ) {
54
- dependsOn(classpathTestTask)
55
- }
56
-
57
- dependencies {
58
- compileOnly ' org.wiremock:wiremock:3.5.4 '
59
- implementation(' au.com.dius.pact.core:model:4.6.9 ' ) {
60
- exclude group : " org.apache.groovy" , module : " groovy-xml"
61
- exclude group : " org.apache.commons" , module : " commons-collections4"
62
- exclude group : " org.apache.httpcomponents.client5" , module : " httpclient5"
63
- exclude group : " org.apache.httpcomponents.client5" , module : " httpclient5-fluent"
64
- exclude group : " com.google.guava" , module : " guava"
65
- exclude group : " commons-codec" , module : " commons-codec"
66
- exclude group : " io.ktor" , module : " ktor-http-jvm"
67
- exclude group : " com.github.mifmif" , module : " generex"
68
- exclude group : " javax.mail" , module : " mail"
69
- exclude group : " commons-beanutils" , module : " commons-beanutils"
70
- exclude group : " au.com.dius.pact.core" , module : " pactbroker"
71
- }
72
-
73
- testImplementation ' org.wiremock:wiremock:3.5.4 '
74
- testImplementation " io.rest-assured:rest-assured:5.4.0 "
75
-
76
- classpathTestImplementation project
77
- classpathTestImplementation ' org.wiremock:wiremock:3.5.4 '
78
- classpathTestImplementation ' org.assertj:assertj-core:3.25 .3'
79
- classpathTestImplementation platform(' org.junit:junit-bom:5.10 .2' )
80
- classpathTestImplementation ' org.junit.jupiter:junit-jupiter'
81
- classpathTestImplementation ' org.junit.platform:junit-platform-launcher'
82
- }
30
+ def classpathTest = sourceSets. create(' classpathTest' )
31
+ configurations[classpathTest. implementationConfigurationName]. extendsFrom(configurations. runtimeClasspath)
32
+ def classpathTestTask = tasks. register(' classpathTest' , Test ) {
33
+ description = ' Tests that the excluded transitives does not break the library.'
34
+ group = ' verification'
35
+ useJUnitPlatform()
36
+
37
+ testClassesDirs = classpathTest. output. classesDirs
38
+ classpath = configurations[classpathTest. runtimeClasspathConfigurationName] + classpathTest. output
39
+
40
+ shouldRunAfter(tasks. named(' test' ))
41
+ }
42
+
43
+ tasks. named(' check' ) {
44
+ dependsOn(classpathTestTask)
45
+ }
46
+
47
+ dependencies {
48
+ compileOnly ' org.wiremock:wiremock:3.9.1 '
49
+ implementation(' au.com.dius.pact.core:model:4.6.14 ' ) {
50
+ exclude group : " org.apache.groovy" , module : " groovy-xml"
51
+ exclude group : " org.apache.commons" , module : " commons-collections4"
52
+ exclude group : " org.apache.httpcomponents.client5" , module : " httpclient5"
53
+ exclude group : " org.apache.httpcomponents.client5" , module : " httpclient5-fluent"
54
+ exclude group : " com.google.guava" , module : " guava"
55
+ exclude group : " commons-codec" , module : " commons-codec"
56
+ exclude group : " io.ktor" , module : " ktor-http-jvm"
57
+ exclude group : " com.github.mifmif" , module : " generex"
58
+ exclude group : " javax.mail" , module : " mail"
59
+ exclude group : " commons-beanutils" , module : " commons-beanutils"
60
+ exclude group : " au.com.dius.pact.core" , module : " pactbroker"
61
+ }
62
+
63
+ testImplementation ' org.wiremock:wiremock:3.9.1 '
64
+ testImplementation ' io.rest-assured:rest-assured:5.5.0 '
65
+
66
+ classpathTestImplementation project
67
+ classpathTestImplementation ' org.wiremock:wiremock:3.9.1 '
68
+ classpathTestImplementation ' org.assertj:assertj-core:3.26 .3'
69
+ classpathTestImplementation platform(' org.junit:junit-bom:5.11 .2' )
70
+ classpathTestImplementation ' org.junit.jupiter:junit-jupiter'
71
+ classpathTestImplementation ' org.junit.platform:junit-platform-launcher'
72
+ }
83
73
})
84
74
85
75
project(' wiremock-pact-extension-junit5' , {
86
- dependencies {
87
- api project(' :wiremock-pact-lib' )
88
- compileOnly platform(' org.junit:junit-bom:5.10 .2' )
89
- compileOnly ' org.junit.jupiter:junit-jupiter'
90
- compileOnly ' org.wiremock:wiremock:3.5.4 '
91
-
92
- testImplementation ' org.wiremock:wiremock:3.5.4 '
93
- }
76
+ dependencies {
77
+ api project(' :wiremock-pact-lib' )
78
+ compileOnly platform(' org.junit:junit-bom:5.11 .2' )
79
+ compileOnly ' org.junit.jupiter:junit-jupiter'
80
+ compileOnly ' org.wiremock:wiremock:3.9.1 '
81
+
82
+ testImplementation ' org.wiremock:wiremock:3.9.1 '
83
+ }
94
84
})
95
85
96
86
project(' wiremock-pact-example-springboot-app' , {
97
- apply plugin : " org.springframework.boot"
98
- apply plugin : ' io.spring.dependency-management'
99
-
100
- dependencies {
101
- implementation ' org.springframework.boot:spring-boot-starter-web'
102
- implementation ' org.springframework.boot:spring-boot-starter-actuator'
103
- implementation ' jakarta.ws.rs:jakarta.ws.rs-api:3.1 .0'
104
- implementation ' com.fasterxml.jackson.datatype:jackson-datatype-joda:2.17 .0'
105
- implementation ' com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-json-provider:2.17 .0'
106
- implementation ' org.jboss.resteasy:resteasy-client:6.2.8 .Final'
107
-
108
- testImplementation project(' :wiremock-pact-extension-junit5' )
109
- testImplementation ' org.springframework.boot:spring-boot-starter-test'
110
- testImplementation ' com.maciejwalkowiak.spring:wiremock-spring-boot:2.1.2 '
111
- }
112
-
113
- bootJar {
114
- enabled = false
115
- }
116
-
117
- jar {
118
- enabled = true
119
- }
87
+ apply plugin : " org.springframework.boot"
88
+ apply plugin : ' io.spring.dependency-management'
89
+
90
+ dependencies {
91
+ implementation ' org.springframework.boot:spring-boot-starter-web'
92
+ implementation ' org.springframework.boot:spring-boot-starter-actuator'
93
+ implementation ' jakarta.ws.rs:jakarta.ws.rs-api:4.0 .0'
94
+ implementation ' com.fasterxml.jackson.datatype:jackson-datatype-joda:2.18 .0'
95
+ implementation ' com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-json-provider:2.18 .0'
96
+ implementation ' org.jboss.resteasy:resteasy-client:6.2.10 .Final'
97
+
98
+ testImplementation project(' :wiremock-pact-extension-junit5' )
99
+ testImplementation ' org.springframework.boot:spring-boot-starter-test'
100
+ testImplementation ' com.maciejwalkowiak.spring:wiremock-spring-boot:2.1.3 '
101
+ }
102
+
103
+ bootJar {
104
+ enabled = false
105
+ }
106
+
107
+ jar {
108
+ enabled = true
109
+ }
120
110
})
0 commit comments