diff --git a/pom.xml b/pom.xml index 0d093aa1523f76fc60c45623f233b68edaaa04dd..f16c5d503ad46b305b0ffbd279348a4aa5b50f5f 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,7 @@ <!-- File catalog repository directory --> <init_database_scripts_path>../../../vospace-file-catalog</init_database_scripts_path> <finalName>${project.artifactId}-${project.version}</finalName> + <zonky.postgres-binaries.version>12.5.0</zonky.postgres-binaries.version> </properties> <dependencies> @@ -96,21 +97,43 @@ <version>0.13.3</version> <scope>test</scope> </dependency> - <dependency> - <groupId>io.zonky.test.postgres</groupId> - <artifactId>embedded-postgres-binaries-linux-amd64</artifactId> - <version>12.5.0</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>io.zonky.test.postgres</groupId> - <artifactId>embedded-postgres-binaries-windows-amd64</artifactId> - <version>12.5.0</version> - <scope>test</scope> - </dependency> </dependencies> + <profiles> + <profile> + <id>platform-linux</id> + <activation> + <os> + <family>unix</family> + </os> + </activation> + <dependencies> + <dependency> + <groupId>io.zonky.test.postgres</groupId> + <artifactId>embedded-postgres-binaries-linux-amd64</artifactId> + <version>${zonky.postgres-binaries.version}</version> + <scope>test</scope> + </dependency> + </dependencies> + </profile> + <profile> + <id>platform-windows</id> + <activation> + <os> + <family>windows</family> + </os> + </activation> + <dependencies> + <dependency> + <groupId>io.zonky.test.postgres</groupId> + <artifactId>embedded-postgres-binaries-windows-amd64</artifactId> + <version>${zonky.postgres-binaries.version}</version> + <scope>test</scope> + </dependency> + </dependencies> + </profile> + </profiles> <repositories> <repository>