|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
3 | | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
5 | 5 | <modelVersion>4.0.0</modelVersion> |
6 | 6 | <parent> |
7 | 7 | <groupId>uk.gov.companieshouse</groupId> |
8 | 8 | <artifactId>companies-house-parent</artifactId> |
9 | | - <version>1.3.0</version> |
| 9 | + <version>2.1.5</version> |
10 | 10 | </parent> |
11 | 11 | <artifactId>orders.api.ch.gov.uk</artifactId> |
12 | 12 | <version>unversioned</version> |
13 | 13 | <name>orders.api.ch.gov.uk</name> |
14 | 14 | <description>CH API handling CRUD operations on Ordering Service</description> |
15 | 15 |
|
16 | 16 | <properties> |
17 | | - <kafka-models.version>1.0.26</kafka-models.version> |
18 | | - <ch-kafka.version>1.4.2</ch-kafka.version> |
19 | | - <java.version>1.8</java.version> |
20 | | - <structured-logging.version>1.9.12</structured-logging.version> |
21 | | - <commons.lang.version>2.6</commons.lang.version> |
| 17 | + <maven.compiler.release>21</maven.compiler.release> |
| 18 | + <ch-kafka.version>3.0.1</ch-kafka.version> |
| 19 | + <kafka-models.version>3.0.7</kafka-models.version> |
| 20 | + <java.version>21</java.version> |
| 21 | + <structured-logging.version>3.0.3</structured-logging.version> |
| 22 | + <commons.lang.version>3.14.0</commons.lang.version> |
22 | 23 | <commons.beanutils.version>1.9.4</commons.beanutils.version> |
23 | | - <org.mapstruct.version>1.4.2.Final</org.mapstruct.version> |
24 | | - <gson.version>2.8.0</gson.version> |
25 | | - <hamcrest-all-version>1.3</hamcrest-all-version> |
| 24 | + <org.mapstruct.version>1.5.5.FINAL</org.mapstruct.version> |
| 25 | + <gson.version>2.10.1</gson.version> |
| 26 | + <hamcrest.version>2.2</hamcrest.version> |
26 | 27 | <!-- system-rules: 1.17.2 is the latest version that works with JUnit 5. |
27 | 28 | See https://github.com/stefanbirkner/system-rules/issues/70 --> |
28 | 29 | <system-rules-version>1.17.2</system-rules-version> |
29 | | - <spring-cloud-contract-wiremock-version>2.2.2.RELEASE</spring-cloud-contract-wiremock-version> |
| 30 | + <spring-cloud-contract-wiremock-version>4.1.1</spring-cloud-contract-wiremock-version> |
30 | 31 | <start-class>uk.gov.companieshouse.orders.api.OrdersApiApplication</start-class> |
31 | | - <private-api-sdk-java.version>2.0.286</private-api-sdk-java.version> |
32 | | - <api-sdk-manager-java-library.version>1.0.3</api-sdk-manager-java-library.version> |
33 | | - <api-sdk-java.version>4.3.3</api-sdk-java.version> |
34 | | - <api-helper-java.version>1.4.1</api-helper-java.version> |
35 | | - <api-security-java.version>0.3.4</api-security-java.version> |
36 | | - |
37 | | - <spring-boot-dependencies.version>2.5.5</spring-boot-dependencies.version> |
38 | | - <spring-boot-maven-plugin.version>2.5.5</spring-boot-maven-plugin.version> |
39 | | - |
40 | | - <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> |
41 | | - <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version> |
42 | | - |
43 | | - <log4j-version>2.17.1</log4j-version> |
44 | | - |
| 32 | + <private-api-sdk-java.version>4.0.76</private-api-sdk-java.version> |
| 33 | + <api-sdk-manager-java-library.version>3.0.5</api-sdk-manager-java-library.version> |
| 34 | + <api-sdk-java.version>6.0.9</api-sdk-java.version> |
| 35 | + <api-helper-java.version>3.0.1</api-helper-java.version> |
| 36 | + <api-security-java.version>2.0.0</api-security-java.version> |
| 37 | + <de-flapdoodle-embed-mongo.version>4.9.3</de-flapdoodle-embed-mongo.version> |
| 38 | + <wiremock-standalone.version>3.4.2</wiremock-standalone.version> |
| 39 | + <spring-boot-dependencies.version>3.2.4</spring-boot-dependencies.version> |
| 40 | + <spring-boot-maven-plugin.version>3.2.0</spring-boot-maven-plugin.version> |
| 41 | + <commons-compress.version>1.26.1</commons-compress.version> |
| 42 | + <maven-compiler-plugin.version>3.12.1</maven-compiler-plugin.version> |
| 43 | + <maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version> |
| 44 | + <log4j-version>2.20.0</log4j-version> |
| 45 | + <http2-common.version>11.0.20</http2-common.version> |
| 46 | + <test-containers.version>1.19.7</test-containers.version> |
45 | 47 | <!-- Docker --> |
46 | | - <jib-maven-plugin.version>3.1.1</jib-maven-plugin.version> |
| 48 | + <jib-maven-plugin.version>3.4.1</jib-maven-plugin.version> |
47 | 49 | </properties> |
48 | 50 |
|
49 | 51 | <dependencyManagement> |
|
59 | 61 | </dependencyManagement> |
60 | 62 |
|
61 | 63 | <dependencies> |
| 64 | + <dependency> |
| 65 | + <groupId>org.testcontainers</groupId> |
| 66 | + <artifactId>testcontainers-bom</artifactId> |
| 67 | + <version>${test-containers.version}</version> |
| 68 | + <type>pom</type> |
| 69 | + <scope>import</scope> |
| 70 | + </dependency> |
| 71 | + <dependency> |
| 72 | + <groupId>org.springframework.boot</groupId> |
| 73 | + <artifactId>spring-boot-starter-actuator</artifactId> |
| 74 | + <version>3.2.4</version> |
| 75 | + </dependency> |
| 76 | + <dependency> |
| 77 | + <!--Overriding spring-web version to remove vulnerability--> |
| 78 | + <groupId>org.springframework</groupId> |
| 79 | + <artifactId>spring-web</artifactId> |
| 80 | + <version>6.1.6</version> |
| 81 | + </dependency> |
| 82 | + <dependency> |
| 83 | + <groupId>org.apache.commons</groupId> |
| 84 | + <artifactId>commons-compress</artifactId> |
| 85 | + <version>${commons-compress.version}</version> |
| 86 | + </dependency> |
| 87 | + <dependency> |
| 88 | + <groupId>org.eclipse.jetty.http2</groupId> |
| 89 | + <artifactId>http2-common</artifactId> |
| 90 | + <version>${http2-common.version}</version> |
| 91 | + </dependency> |
| 92 | + <dependency> |
| 93 | + <groupId>jakarta.servlet</groupId> |
| 94 | + <artifactId>jakarta.servlet-api</artifactId> |
| 95 | + <version>6.0.0</version> |
| 96 | + <scope>provided</scope> |
| 97 | + </dependency> |
| 98 | + <dependency> |
| 99 | + <groupId>jakarta.validation</groupId> |
| 100 | + <artifactId>jakarta.validation-api</artifactId> |
| 101 | + <version>3.0.2</version> |
| 102 | + </dependency> |
62 | 103 | <dependency> |
63 | 104 | <groupId>org.springframework.boot</groupId> |
64 | 105 | <artifactId>spring-boot-starter-validation</artifactId> |
|
70 | 111 | <dependency> |
71 | 112 | <groupId>org.springframework.boot</groupId> |
72 | 113 | <artifactId>spring-boot-starter-web</artifactId> |
| 114 | + <exclusions> |
| 115 | + <exclusion> |
| 116 | + <groupId>org.springframework.boot</groupId> |
| 117 | + <artifactId>spring-boot-starter-logging</artifactId> |
| 118 | + </exclusion> |
| 119 | + <exclusion> |
| 120 | + <groupId>org.apache.logging.log4j</groupId> |
| 121 | + <artifactId>log4j-to-slf4j</artifactId> |
| 122 | + </exclusion> |
| 123 | + </exclusions> |
| 124 | + </dependency> |
| 125 | + <dependency> |
| 126 | + <groupId>org.springframework.boot</groupId> |
| 127 | + <artifactId>spring-boot-starter</artifactId> |
| 128 | + <exclusions> |
| 129 | + <exclusion> |
| 130 | + <groupId>org.springframework.boot</groupId> |
| 131 | + <artifactId>spring-boot-starter-logging</artifactId> |
| 132 | + </exclusion> |
| 133 | + </exclusions> |
73 | 134 | </dependency> |
74 | 135 | <dependency> |
75 | 136 | <groupId>uk.gov.companieshouse</groupId> |
|
89 | 150 | <dependency> |
90 | 151 | <groupId>org.springframework.boot</groupId> |
91 | 152 | <artifactId>spring-boot-starter-data-mongodb</artifactId> |
| 153 | + <exclusions> |
| 154 | + <exclusion> |
| 155 | + <groupId>org.springframework.boot</groupId> |
| 156 | + <artifactId>spring-boot-starter-logging</artifactId> |
| 157 | + </exclusion> |
| 158 | + </exclusions> |
92 | 159 | </dependency> |
93 | 160 | <dependency> |
94 | 161 | <groupId>org.springframework.boot</groupId> |
95 | 162 | <artifactId>spring-boot-starter-aop</artifactId> |
| 163 | + <exclusions> |
| 164 | + <exclusion> |
| 165 | + <groupId>org.springframework.boot</groupId> |
| 166 | + <artifactId>spring-boot-starter-logging</artifactId> |
| 167 | + </exclusion> |
| 168 | + </exclusions> |
96 | 169 | </dependency> |
97 | | - |
98 | 170 | <dependency> |
99 | 171 | <groupId>org.springframework.boot</groupId> |
100 | 172 | <artifactId>spring-boot-starter-test</artifactId> |
|
106 | 178 | </exclusion> |
107 | 179 | </exclusions> |
108 | 180 | </dependency> |
109 | | - |
110 | 181 | <dependency> |
111 | 182 | <groupId>uk.gov.companieshouse</groupId> |
112 | 183 | <artifactId>structured-logging</artifactId> |
113 | 184 | <version>${structured-logging.version}</version> |
114 | 185 | <scope>compile</scope> |
| 186 | + <exclusions> |
| 187 | + <exclusion> |
| 188 | + <groupId>org.slf4j</groupId> |
| 189 | + <artifactId>slf4j-simple</artifactId> |
| 190 | + </exclusion> |
| 191 | + </exclusions> |
115 | 192 | </dependency> |
| 193 | + <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 --> |
116 | 194 | <dependency> |
117 | | - <groupId>commons-lang</groupId> |
118 | | - <artifactId>commons-lang</artifactId> |
| 195 | + <groupId>org.apache.commons</groupId> |
| 196 | + <artifactId>commons-lang3</artifactId> |
119 | 197 | <version>${commons.lang.version}</version> |
120 | 198 | </dependency> |
121 | 199 | <dependency> |
122 | 200 | <groupId>commons-beanutils</groupId> |
123 | 201 | <artifactId>commons-beanutils</artifactId> |
124 | 202 | <version>${commons.beanutils.version}</version> |
125 | 203 | </dependency> |
126 | | - |
127 | 204 | <dependency> |
128 | 205 | <groupId>uk.gov.companieshouse</groupId> |
129 | | - <artifactId>kafka-models</artifactId> |
130 | | - <version>${kafka-models.version}</version> |
| 206 | + <artifactId>ch-kafka</artifactId> |
| 207 | + <version>${ch-kafka.version}</version> |
131 | 208 | </dependency> |
132 | 209 | <dependency> |
133 | 210 | <groupId>uk.gov.companieshouse</groupId> |
134 | | - <artifactId>ch-kafka</artifactId> |
135 | | - <version>${ch-kafka.version}</version> |
| 211 | + <artifactId>kafka-models</artifactId> |
| 212 | + <version>${kafka-models.version}</version> |
136 | 213 | </dependency> |
137 | 214 | <dependency> |
138 | 215 | <groupId>org.hibernate.validator</groupId> |
139 | 216 | <artifactId>hibernate-validator</artifactId> |
140 | 217 | </dependency> |
141 | | - |
142 | 218 | <dependency> |
143 | 219 | <groupId>org.springframework.kafka</groupId> |
144 | 220 | <artifactId>spring-kafka-test</artifactId> |
145 | 221 | <scope>test</scope> |
| 222 | + <version>3.0.13</version> |
| 223 | + <exclusions> |
| 224 | + <exclusion> |
| 225 | + <groupId>org.pcollections</groupId> |
| 226 | + <artifactId>pcollections</artifactId> |
| 227 | + </exclusion> |
| 228 | + </exclusions> |
146 | 229 | </dependency> |
147 | 230 | <dependency> |
148 | 231 | <groupId>org.hamcrest</groupId> |
149 | | - <artifactId>hamcrest-all</artifactId> |
150 | | - <version>${hamcrest-all-version}</version> |
| 232 | + <artifactId>hamcrest</artifactId> |
| 233 | + <version>${hamcrest.version}</version> |
151 | 234 | <scope>test</scope> |
152 | 235 | </dependency> |
153 | 236 | <dependency> |
|
178 | 261 | <version>${api-sdk-manager-java-library.version}</version> |
179 | 262 | </dependency> |
180 | 263 | <dependency> |
181 | | - <groupId>de.flapdoodle.embed</groupId> |
182 | | - <artifactId>de.flapdoodle.embed.mongo</artifactId> |
| 264 | + <groupId>org.testcontainers</groupId> |
| 265 | + <artifactId>mongodb</artifactId> |
| 266 | + <scope>test</scope> |
| 267 | + </dependency> |
| 268 | + <dependency> |
| 269 | + <groupId>org.testcontainers</groupId> |
| 270 | + <artifactId>junit-jupiter</artifactId> |
183 | 271 | <scope>test</scope> |
184 | 272 | </dependency> |
185 | 273 | <dependency> |
|
204 | 292 | <artifactId>log4j-api</artifactId> |
205 | 293 | <version>${log4j-version}</version> |
206 | 294 | </dependency> |
207 | | - <dependency> |
208 | | - <groupId>org.apache.logging.log4j</groupId> |
209 | | - <artifactId>log4j-to-slf4j</artifactId> |
210 | | - <version>${log4j-version}</version> |
211 | | - </dependency> |
212 | 295 | </dependencies> |
213 | 296 |
|
214 | 297 | <build> |
|
261 | 344 | <groupId>org.apache.maven.plugins</groupId> |
262 | 345 | <artifactId>maven-surefire-plugin</artifactId> |
263 | 346 | <version>${maven-surefire-plugin.version}</version> |
| 347 | + <configuration> |
| 348 | + <argLine>--add-opens=java.base/java.util=ALL-UNNAMED</argLine> |
| 349 | + </configuration> |
264 | 350 | </plugin> |
265 | 351 | <plugin> |
266 | 352 | <groupId>com.google.cloud.tools</groupId> |
|
270 | 356 | <container> |
271 | 357 | <expandClasspathDependencies>true</expandClasspathDependencies> |
272 | 358 | </container> |
| 359 | + <from> |
| 360 | + <image>416670754337.dkr.ecr.eu-west-2.amazonaws.com/ci-corretto-build-21:latest</image> |
| 361 | + </from> |
| 362 | + <to>//Once the pipeline is moved to shared services need to update this to image reference from shared services |
| 363 | + <image>169942020521.dkr.ecr.eu-west-1.amazonaws.com/local/orders.api.ch.gov.uk:latest</image> |
| 364 | + </to> |
273 | 365 | </configuration> |
274 | 366 | </plugin> |
275 | 367 | </plugins> |
|
0 commit comments