|
32 | 32 | <mockito.version>2.23.4</mockito.version>
|
33 | 33 |
|
34 | 34 | <!-- database -->
|
35 |
| - <db.database>test</db.database> |
| 35 | + <db.name>test_r2dbc</db.name> |
36 | 36 | <db.host>localhost</db.host>
|
37 |
| - <db.user>test</db.user> |
| 37 | + <db.username>test</db.username> |
38 | 38 | <db.password>password</db.password>
|
39 | 39 | </properties>
|
40 | 40 | <dependencyManagement>
|
|
64 | 64 | </dependencies>
|
65 | 65 | </dependencyManagement>
|
66 | 66 | <dependencies>
|
| 67 | + <dependency> |
| 68 | + <groupId>tech.simter</groupId> |
| 69 | + <artifactId>simter-r2dbc-ext</artifactId> |
| 70 | + <version>1.1.1</version> |
| 71 | + <scope>test</scope> |
| 72 | + </dependency> |
67 | 73 | <dependency>
|
68 | 74 | <groupId>org.springframework.data</groupId>
|
69 | 75 | <artifactId>spring-data-r2dbc</artifactId>
|
|
184 | 190 | <artifactId>maven-surefire-plugin</artifactId>
|
185 | 191 | <version>2.22.1</version>
|
186 | 192 | </plugin>
|
| 193 | + <plugin> |
| 194 | + <groupId>org.apache.maven.plugins</groupId> |
| 195 | + <artifactId>maven-resources-plugin</artifactId> |
| 196 | + <version>3.1.0</version> |
| 197 | + <configuration> |
| 198 | + <delimiters> |
| 199 | + <!-- make yml file support maven properties (by @...@)--> |
| 200 | + <delimiter>@</delimiter> |
| 201 | + </delimiters> |
| 202 | + <useDefaultDelimiters>false</useDefaultDelimiters> |
| 203 | + </configuration> |
| 204 | + </plugin> |
187 | 205 | </plugins>
|
188 | 206 | </build>
|
189 | 207 | <profiles>
|
190 | 208 | <!-- database -->
|
191 | 209 | <profile>
|
192 |
| - <id>postgres</id> |
| 210 | + <id>h2</id> |
193 | 211 | <activation>
|
194 | 212 | <activeByDefault>true</activeByDefault>
|
195 | 213 | </activation>
|
| 214 | + <properties> |
| 215 | + <db.platform>h2</db.platform> |
| 216 | + <db.port>~</db.port> |
| 217 | + </properties> |
196 | 218 | <dependencies>
|
197 | 219 | <dependency>
|
198 | 220 | <groupId>io.r2dbc</groupId>
|
199 |
| - <artifactId>r2dbc-postgresql</artifactId> |
| 221 | + <artifactId>r2dbc-h2</artifactId> |
200 | 222 | <version>${r2dbc.version}</version>
|
201 | 223 | <scope>runtime</scope>
|
202 | 224 | </dependency>
|
203 | 225 | <dependency>
|
204 |
| - <groupId>org.postgresql</groupId> |
205 |
| - <artifactId>postgresql</artifactId> |
206 |
| - <version>42.2.5</version> |
| 226 | + <groupId>com.h2database</groupId> |
| 227 | + <artifactId>h2</artifactId> |
| 228 | + <version>1.4.197</version> |
207 | 229 | <scope>runtime</scope>
|
208 | 230 | </dependency>
|
209 | 231 | </dependencies>
|
210 | 232 | </profile>
|
211 | 233 | <profile>
|
212 |
| - <id>h2</id> |
| 234 | + <id>postgres</id> |
213 | 235 | <activation>
|
214 | 236 | <activeByDefault>false</activeByDefault>
|
215 | 237 | </activation>
|
| 238 | + <properties> |
| 239 | + <db.platform>postgres</db.platform> |
| 240 | + <db.port>5432</db.port> |
| 241 | + </properties> |
216 | 242 | <dependencies>
|
217 | 243 | <dependency>
|
218 | 244 | <groupId>io.r2dbc</groupId>
|
219 |
| - <artifactId>r2dbc-h2</artifactId> |
| 245 | + <artifactId>r2dbc-postgresql</artifactId> |
220 | 246 | <version>${r2dbc.version}</version>
|
221 | 247 | <scope>runtime</scope>
|
222 | 248 | </dependency>
|
223 |
| - <dependency> |
224 |
| - <groupId>com.h2database</groupId> |
225 |
| - <artifactId>h2</artifactId> |
226 |
| - <version>1.4.197</version> |
227 |
| - <scope>runtime</scope> |
228 |
| - </dependency> |
229 | 249 | </dependencies>
|
230 | 250 | </profile>
|
231 | 251 | <profile>
|
232 | 252 | <id>mssql</id>
|
233 | 253 | <activation>
|
234 | 254 | <activeByDefault>false</activeByDefault>
|
235 | 255 | </activation>
|
| 256 | + <properties> |
| 257 | + <db.platform>mssql</db.platform> |
| 258 | + <db.port>1234</db.port> |
| 259 | + </properties> |
236 | 260 | <dependencies>
|
237 | 261 | <dependency>
|
238 | 262 | <groupId>io.r2dbc</groupId>
|
239 | 263 | <artifactId>r2dbc-mssql</artifactId>
|
240 | 264 | <version>${r2dbc.version}</version>
|
241 | 265 | <scope>runtime</scope>
|
242 | 266 | </dependency>
|
243 |
| - <dependency> |
244 |
| - <groupId>com.microsoft.sqlserver</groupId> |
245 |
| - <artifactId>mssql-jdbc</artifactId> |
246 |
| - <version>7.1.3.jre8-preview</version> |
247 |
| - <scope>runtime</scope> |
248 |
| - </dependency> |
249 | 267 | </dependencies>
|
250 | 268 | </profile>
|
251 | 269 | </profiles>
|
|
0 commit comments