Commit 0358e683 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added Maven profiles for loading io.zonky.test.postgres dependency dinamically...

Added Maven profiles for loading io.zonky.test.postgres dependency dinamically according to detected OS
parent 582b968d
Loading
Loading
Loading
Loading
+35 −12
Original line number Diff line number Diff line
@@ -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>

    </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>12.5.0</version>
                    <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>12.5.0</version>
                    <version>${zonky.postgres-binaries.version}</version>
                    <scope>test</scope>
                </dependency>

            </dependencies>
    
        </profile>
    </profiles>
    
    <repositories>
        <repository>