|
13 | 13 | <parent>
|
14 | 14 | <groupId>org.springframework.boot</groupId>
|
15 | 15 | <artifactId>spring-boot-starter-parent</artifactId>
|
16 |
| - <version>2.5.12</version> |
| 16 | + <version>3.0.5</version> |
17 | 17 | <relativePath/> <!-- lookup parent from repository -->
|
18 | 18 | </parent>
|
19 | 19 |
|
20 | 20 | <properties>
|
21 | 21 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
22 | 22 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
23 |
| - <java.version>11</java.version> |
| 23 | + <java.version>17</java.version> |
24 | 24 | <mapstruct.version>1.2.0.Final</mapstruct.version>
|
25 |
| - <grpc.version>1.34.1</grpc.version> |
| 25 | + <grpc.version>1.54.0</grpc.version><!-- WIP --> |
| 26 | + <!-- Spring security version compatible with Spring boot 3.0.x --> |
| 27 | + <spring-security.version>6.0.3</spring-security.version> |
26 | 28 | </properties>
|
27 | 29 |
|
28 | 30 | <dependencies>
|
|
34 | 36 | <groupId>org.springframework.boot</groupId>
|
35 | 37 | <artifactId>spring-boot-starter-actuator</artifactId>
|
36 | 38 | </dependency>
|
| 39 | + |
| 40 | + <!-- Moving authorization-server before of starter-security to solve conflicts with JwtEncoder, V1.x compatible with Spring boot 3.0.x --> |
| 41 | + <dependency> |
| 42 | + <groupId>org.springframework.security</groupId> |
| 43 | + <artifactId>spring-security-oauth2-authorization-server</artifactId> |
| 44 | + <version>1.0.1</version> |
| 45 | + </dependency> |
| 46 | + |
37 | 47 | <dependency>
|
38 | 48 | <groupId>org.springframework.boot</groupId>
|
39 | 49 | <artifactId>spring-boot-starter-security</artifactId>
|
|
52 | 62 |
|
53 | 63 | <dependency>
|
54 | 64 | <groupId>org.springframework.security</groupId>
|
55 |
| - <artifactId>spring-security-oauth2-authorization-server</artifactId> |
56 |
| - <version>0.2.1</version> |
| 65 | + <artifactId>spring-security-oauth2-client</artifactId> |
| 66 | + <version>6.0.3</version> |
57 | 67 | </dependency>
|
58 | 68 |
|
59 | 69 | <dependency>
|
|
68 | 78 | <dependency>
|
69 | 79 | <groupId>org.projectlombok</groupId>
|
70 | 80 | <artifactId>lombok</artifactId>
|
71 |
| - <version>1.18.16</version> |
| 81 | + <!-- compatible with JDK17 --> |
| 82 | + <version>1.18.22</version> |
72 | 83 | <optional>true</optional>
|
73 | 84 | </dependency>
|
74 |
| - |
| 85 | + <!-- API documentation. replacement of springfox-swagger2, compatible with Springboot 3.x --> |
75 | 86 | <dependency>
|
76 |
| - <groupId>io.springfox</groupId> |
77 |
| - <artifactId>springfox-swagger2</artifactId> |
78 |
| - <version>2.9.2</version> |
79 |
| - <scope>compile</scope> |
80 |
| - <exclusions> |
81 |
| - <exclusion> |
82 |
| - <groupId>org.mapstruct</groupId> |
83 |
| - <artifactId>mapstruct</artifactId> |
84 |
| - </exclusion> |
85 |
| - </exclusions> |
86 |
| - </dependency> |
87 |
| - <dependency> |
88 |
| - <groupId>io.springfox</groupId> |
89 |
| - <artifactId>springfox-swagger-ui</artifactId> |
90 |
| - <version>2.9.2</version> |
91 |
| - <scope>compile</scope> |
| 87 | + <groupId>org.springdoc</groupId> |
| 88 | + <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> |
| 89 | + <version>2.1.0</version> |
92 | 90 | </dependency>
|
93 | 91 | <dependency>
|
94 | 92 | <groupId>org.springframework.boot</groupId>
|
|
135 | 133 | <!-- https://vladmihalcea.com/the-best-way-to-map-an-enum-type-with-jpa-and-hibernate/ -->
|
136 | 134 | <dependency>
|
137 | 135 | <groupId>com.vladmihalcea</groupId>
|
138 |
| - <artifactId>hibernate-types-52</artifactId> |
139 |
| - <version>2.2.2</version> |
| 136 | + <artifactId>hibernate-types-60</artifactId> |
| 137 | + <version>2.21.1</version> |
140 | 138 | </dependency>
|
141 | 139 |
|
142 | 140 | <!-- TestContainers (for testing) -->
|
143 | 141 | <dependency>
|
144 | 142 | <groupId>org.testcontainers</groupId>
|
145 | 143 | <artifactId>testcontainers</artifactId>
|
146 |
| - <version>1.15.1</version> |
| 144 | + <version>1.18.0</version> |
147 | 145 | </dependency>
|
148 | 146 | <dependency>
|
149 | 147 | <groupId>org.testcontainers</groupId>
|
150 | 148 | <artifactId>jdbc</artifactId>
|
151 |
| - <version>1.15.1</version> |
| 149 | + <version>1.18.0</version> |
152 | 150 | </dependency>
|
153 | 151 | <dependency>
|
154 | 152 | <groupId>org.testcontainers</groupId>
|
155 | 153 | <artifactId>postgresql</artifactId>
|
156 |
| - <version>1.15.1</version> |
| 154 | + <version>1.18.0</version> |
157 | 155 | </dependency>
|
158 | 156 | <dependency>
|
159 | 157 | <groupId>commons-io</groupId>
|
|
166 | 164 | <version>2.6</version>
|
167 | 165 | </dependency>
|
168 | 166 |
|
169 |
| - <!-- Flyway, for testcontainers --> |
| 167 | + <!-- Flyway, for testcontainers V9 compatible with SpringBoot 3 --> |
170 | 168 | <dependency>
|
171 | 169 | <groupId>org.flywaydb</groupId>
|
172 | 170 | <artifactId>flyway-core</artifactId>
|
173 |
| - <version>5.2.4</version> |
| 171 | + <version>9.16.3</version> |
174 | 172 | </dependency>
|
175 | 173 |
|
176 | 174 |
|
|
304 | 302 | <scope>test</scope>
|
305 | 303 | </dependency>
|
306 | 304 |
|
| 305 | + <!-- Compatibility with Grpc proto generated annotation --> |
| 306 | + <dependency> |
| 307 | + <groupId>javax.annotation</groupId> |
| 308 | + <artifactId>javax.annotation-api</artifactId> |
| 309 | + <version>1.3.2</version> |
| 310 | + </dependency> |
| 311 | + |
307 | 312 | <dependency>
|
308 | 313 | <groupId>org.junit.vintage</groupId>
|
309 | 314 | <artifactId>junit-vintage-engine</artifactId>
|
|
356 | 361 | <artifactId>spring-boot-maven-plugin</artifactId>
|
357 | 362 | <configuration>
|
358 | 363 | <classifier>exec</classifier>
|
359 |
| - <fork>true</fork> |
| 364 | +<!-- <fork>true</fork>--> |
360 | 365 | </configuration>
|
361 | 366 | <executions>
|
362 | 367 | <execution>
|
|
389 | 394 | <plugin>
|
390 | 395 | <groupId>org.xolstice.maven.plugins</groupId>
|
391 | 396 | <artifactId>protobuf-maven-plugin</artifactId>
|
392 |
| - <version>0.5.1</version> |
| 397 | + <version>0.6.1</version> |
393 | 398 | <configuration>
|
394 | 399 | <protocArtifact>com.google.protobuf:protoc:3.12.0:exe:${os.detected.classifier}</protocArtifact>
|
| 400 | + <!-- for Mac OS compatibility --> |
| 401 | + <!--<protocArtifact>com.google.protobuf:protoc:3.21.7:exe:osx-x86_64</protocArtifact>--> |
395 | 402 | <protoSourceRoot>${basedir}/src/main/proto</protoSourceRoot>
|
396 | 403 | <pluginId>grpc-java</pluginId>
|
397 |
| - <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.34.1:exe:${os.detected.classifier}</pluginArtifact> |
| 404 | + <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.54.0:exe:${os.detected.classifier}</pluginArtifact> |
| 405 | + <!-- for Mac Os compatibility --> |
| 406 | + <!--<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:osx-x86_64</pluginArtifact>--> |
398 | 407 | </configuration>
|
399 | 408 | <executions>
|
400 | 409 | <execution>
|
|
434 | 443 | <dependency>
|
435 | 444 | <groupId>org.springframework.cloud</groupId>
|
436 | 445 | <artifactId>spring-cloud-dependencies</artifactId>
|
437 |
| - <version>2020.0.4</version> |
| 446 | + <!-- version compatible with Spring boot 2.7.x --> |
| 447 | + <version>2021.0.5</version> |
438 | 448 | <type>pom</type>
|
439 | 449 | <scope>import</scope>
|
440 | 450 | </dependency>
|
|
0 commit comments