diff --git a/buildSrc/src/main/groovy/org/hibernate/build/gradle/testing/matrix/MatrixTestingPlugin.groovy b/buildSrc/src/main/groovy/org/hibernate/build/gradle/testing/matrix/MatrixTestingPlugin.groovy index c4b9b72d61..1c774a6964 100644 --- a/buildSrc/src/main/groovy/org/hibernate/build/gradle/testing/matrix/MatrixTestingPlugin.groovy +++ b/buildSrc/src/main/groovy/org/hibernate/build/gradle/testing/matrix/MatrixTestingPlugin.groovy @@ -86,11 +86,15 @@ public class MatrixTestingPlugin implements Plugin { matrixTask.dependsOn( matrixNodeTask ); } - if ( !System.properties[SKIP_UNIT_TEST].equals('true') ) { + if ( ! shouldSkipMatrixTestsAgainstDefaultDb() ) { createTestTaskForMatrixSourceSet(); } } + private boolean shouldSkipMatrixTestsAgainstDefaultDb() { + return "true".equals( project.properties[SKIP_UNIT_TEST] ) || "true".equals( System.properties[SKIP_UNIT_TEST] ); + } + private List locateMatrixNodes() { List matrixNodes = new ArrayList(); Iterable profiles = project.rootProject.plugins[DatabaseProfilePlugin].databaseProfiles;