@@ -21,12 +21,12 @@ plugins {
2121
2222// Dependency providers to fetch from
2323repositories {
24- // Use jcenter for resolving your dependencies.
25- jcenter()
26-
27- // Alterantively maven central could be used instead
24+ // Use maven central to resolve dependencies
2825 mavenCentral()
2926
27+ // Use jcenter as an alternative
28+ jcenter()
29+
3030 // You can declare any other Maven/Ivy/file repository here.
3131}
3232
@@ -109,6 +109,9 @@ dependencies {
109109 // api "com.hazelcast:hazelcast:3.11.4"
110110 // api "com.hazelcast:hazelcast-client:3.11.4"
111111
112+ // Mongo DB
113+ api ' org.mongodb:mongodb-driver-sync:4.5.1'
114+
112115 // PostgresSQL library
113116 api " org.postgresql:postgresql:42.2.5"
114117
@@ -245,24 +248,36 @@ test {
245248 exclude " **/*_perf*"
246249 }
247250
248- // Include mssql, mysql, and oracle test only if they are configured respectively
251+ // Include specific DB test only if they are configured respectively
249252 //
250253 // You can enable any of them by running the `gradle test` command with their `-P`
251254 // option, for example `gradle test -Ptest_mssql`
252- if (! project. hasProperty(" test_mssql" )) {
253- exclude " **/*Mssql*"
254- }
255- if (! project. hasProperty(" test_oracle" )) {
256- exclude " **/*Oracle*"
257- }
258- if (! project. hasProperty(" test_mysql" )) {
259- exclude " **/*Mysql*"
260- }
261- if (! project. hasProperty(" test_postgres" )) {
262- exclude " **/*Postgres*"
263- }
264- if (! project. hasProperty(" test_sqlite" )) {
265- exclude " **/*Sqlite*"
255+ if (project. hasProperty(" test_all" )) {
256+ // does nothing, no exclusions needed
257+ } else {
258+ if (! project. hasProperty(" test_mssql" )) {
259+ exclude " **/*Mssql*"
260+ }
261+ if (! project. hasProperty(" test_oracle" )) {
262+ exclude " **/*Oracle*"
263+ }
264+ if (! project. hasProperty(" test_mysql" )) {
265+ exclude " **/*Mysql*"
266+ }
267+ if (! project. hasProperty(" test_postgres" )) {
268+ exclude " **/*Postgres*"
269+ }
270+ if (! project. hasProperty(" test_sqlite" )) {
271+ exclude " **/*Sqlite*"
272+ }
273+ if (! project. hasProperty(" test_hazelcast" )) {
274+ exclude " **/*Hazelcast*"
275+ exclude " **/*hazelcast*"
276+ exclude " **/*HJ_*"
277+ }
278+ if (! project. hasProperty(" test_mongodb" )) {
279+ exclude " **/*MongoDB*"
280+ }
266281 }
267282
268283 // Setup test to run on parllel threads = to number of processors by default
@@ -336,24 +351,36 @@ task incrementalTest(type: TestWatcher) {
336351 exclude " **/perf/*.java"
337352 exclude " **/*_perf*"
338353
339- // Include mssql, mysql, and oracle test only if they are configured respectively
354+ // Include specific DB test only if they are configured respectively
340355 //
341356 // You can enable any of them by running the `gradle test` command with their `-P`
342357 // option, for example `gradle test -Ptest_mssql`
343- if (! project. hasProperty(" test_mssql" )) {
344- exclude " **/*Mssql*"
345- }
346- if (! project. hasProperty(" test_oracle" )) {
347- exclude " **/*Oracle*"
348- }
349- if (! project. hasProperty(" test_mysql" )) {
350- exclude " **/*Mysql*"
351- }
352- if (! project. hasProperty(" test_postgres" )) {
353- exclude " **/*Postgres*"
354- }
355- if (! project. hasProperty(" test_sqlite" )) {
356- exclude " **/*Sqlite*"
358+ if (project. hasProperty(" test_all" )) {
359+ // does nothing, no exclusions needed
360+ } else {
361+ if (! project. hasProperty(" test_mssql" )) {
362+ exclude " **/*Mssql*"
363+ }
364+ if (! project. hasProperty(" test_oracle" )) {
365+ exclude " **/*Oracle*"
366+ }
367+ if (! project. hasProperty(" test_mysql" )) {
368+ exclude " **/*Mysql*"
369+ }
370+ if (! project. hasProperty(" test_postgres" )) {
371+ exclude " **/*Postgres*"
372+ }
373+ if (! project. hasProperty(" test_sqlite" )) {
374+ exclude " **/*Sqlite*"
375+ }
376+ if (! project. hasProperty(" test_hazelcast" )) {
377+ exclude " **/*Hazelcast*"
378+ exclude " **/*hazelcast*"
379+ exclude " **/*HJ_*"
380+ }
381+ if (! project. hasProperty(" test_mongodb" )) {
382+ exclude " **/*MongoDB*"
383+ }
357384 }
358385
359386 // Setup test to run on parllel threads = to number of processors by default
0 commit comments