<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org</groupId>
    <artifactId>dwcj</artifactId>
    <version>0.010alpha</version>
    <packaging>jar</packaging>
    <name>dwcj</name>
    <description>Program that allows implementation of an API layer 
    enabling the developer to build application software for the BBj 
    ecosystem by using Java or other JVM languages like Kotlin instead 
    of the BBj Business Basic syntax built into the BBj product.
    </description>
    <url>https://dwcj.org</url>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <developers>
        <developer>
            <name>Stephan Wald</name>
            <email>swald@basis.cloud</email>
            <organization>BASIS Europe Distribution GmbH</organization>
            <organizationUrl>https://www.basis-europe.eu/en/</organizationUrl>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:git://github.com/DwcJava/engine.git</connection>
        <developerConnection>scm:git:ssh://github.com:DwcJava/engine.git</developerConnection>
        <url>https://github.com/DwcJava/engine/tree/main</url>
    </scm>

    <licenses>
        <license>
            <name>MIT License</name>
            <url>https://www.opensource.org/licenses/mit-license.php</url>
        </license>
    </licenses>

    <distributionManagement>
        <repository>
            <id>ossrh</id>
            <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
        <snapshotRepository>
            <id>ossrh</id>
            <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
    </distributionManagement>

    <profiles>
        <!-- default build profile, active by default -->
        <profile>
            <id>winbbxlib</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>

            <properties>
                <jar-directory>C:/bbx/lib</jar-directory>
            </properties>
        </profile>
        <profile>
            <id>winbbjlib</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>

            <properties>
                <jar-directory>C:/bbj/lib</jar-directory>
            </properties>
        </profile>
        <profile>
            <id>unixbbjlib</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <jar-directory>/opt/bbj/lib</jar-directory>
            </properties>
        </profile>
        <profile>
            <id>macbbjlib</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <jar-directory>/Users/beff/bbx/lib</jar-directory>
            </properties>
        </profile>
        <profile>
            <id>perform-release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>maven-source-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

    </profiles>

    <dependencies>
        <dependency>
            <groupId>com.basis.lib</groupId>
            <artifactId>BBj.jar</artifactId>
            <scope>system</scope>
            <version>1.0</version>
            <systemPath>${jar-directory}/BBj.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>com.basis.lib</groupId>
            <artifactId>BBjStartup.jar</artifactId>
            <scope>system</scope>
            <version>1.0</version>
            <systemPath>${jar-directory}/BBjStartup.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>com.basis.lib</groupId>
            <artifactId>BBjUtil.jar</artifactId>
            <scope>system</scope>
            <version>1.0</version>
            <systemPath>${jar-directory}/BBjUtil.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>com.basiscomponents</groupId>
            <artifactId>basiscomponents.jar</artifactId>
            <scope>system</scope>
            <version>1.0</version>
            <systemPath>${jar-directory}/basiscomponents.jar</systemPath>
        </dependency>

        <!-- basiscomponents.jar depends on jackson: -->
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>2.14.1</version>
        </dependency>

        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <version>5.3.2</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>3.0.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>3.1.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>3.2.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>3.2.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>3.0.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>3.3.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugins</artifactId>
                    <version>3.0.0-M7</version>
                    <configuration>
                        <releaseProfiles>perform-release</releaseProfiles>
                        <arguments>${arguments}</arguments>
                        <goals>deploy</goals>
                        <autoVersionSubmodules>true</autoVersionSubmodules>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>3.0.0-M8</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-failsafe-plugin</artifactId>
                    <version>3.0.0-M8</version>
                </plugin>

                <!-- Set a JDK compiler level -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.10.1</version>
                    <configuration>
                        <source>11</source>
                        <target>11</target>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>3.3.0</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-project-info-reports-plugin</artifactId>
                    <version>3.0.0</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>3.4.1</version>
                    <configuration>
                        <source>11</source>
                        <detectJavaApiLink>false</detectJavaApiLink>
                        <failOnError>false</failOnError>
                        <failOnWarning>false</failOnWarning>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.sonatype.plugins</groupId>
                    <artifactId>nexus-staging-maven-plugin</artifactId>
                    <version>1.6.7</version>
                    <extensions>true</extensions>
                    <configuration>
                        <serverId>ossrh</serverId>
                        <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
                        <autoReleaseAfterClose>false</autoReleaseAfterClose>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

</project>
