<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>

    <parent>
        <groupId>org.connectorio</groupId>
        <artifactId>connectorio-oss</artifactId>
        <version>5</version>
        <relativePath />
    </parent>

    <groupId>org.code-house.bacnet4j</groupId>
    <artifactId>bacnet4j-wrapper</artifactId>
    <packaging>pom</packaging>
    <version>1.3.0-beta2</version>

    <name>Code-House :: Bacnet4J Wrapper</name>
    <description>
        This small library provides thin and small abstraction layer over bacnet4j api to host more friendly application
        programming interface. It hides most of the bacnet internals behind BacNetClient class which is responsible for
        interacting with infrastructure.
    </description>

    <organization>
        <name>Code-House</name>
        <url>http://code-house.org</url>
    </organization>

    <licenses>
        <license>
            <name>GNU General Public License, version 3</name>
            <url>https://www.gnu.org/licenses/gpl-3.0.txt</url>
            <comments>Due to bacnet4j dependency this library must be licensed under GNU GPL.</comments>
        </license>
    </licenses>

    <scm>
        <connection>scm:git:https://github.com/Code-House/bacnet4j-wrapper.git</connection>
        <developerConnection>scm:git:git@github.com:Code-House/bacnet4j-wrapper.git</developerConnection>
        <url>https://github.com/Code-House/bacnet4j-wrapper</url>
      <tag>bacnet4j-wrapper-1.3.0-beta2</tag>
  </scm>

    <issueManagement>
        <system>github</system>
        <url>http://github.com/Code-House/bacnet4j-wrapper/issues</url>
    </issueManagement>

    <modules>
        <module>api</module>
        <module>ip</module>
        <module>mstp</module>
        <module>assembly</module>
    </modules>

    <properties>
        <osgi.import>*</osgi.import>
        <osgi.export />

        <commons-lang3.version>3.7</commons-lang3.version>
        <bacnet4j.version>6.0.0</bacnet4j.version>
        <sero-warp.version>1.0.0</sero-warp.version>
        <sero-scheduler.version>1.1.0</sero-scheduler.version>
        <slf4j.version>1.7.12</slf4j.version>
        <log4j.version>1.2.17</log4j.version>
    </properties>

    <repositories>
        <repository>
            <id>ias-release</id>
            <releases><enabled>true</enabled></releases>
            <snapshots><enabled>false</enabled></snapshots>
            <name>Infinite Automation Release Repository</name>
            <url>https://maven.mangoautomation.net/repository/ias-release/</url>
        </repository>
    </repositories>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.code-house.bacnet4j</groupId>
                <artifactId>api</artifactId>
                <version>${project.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>com.infiniteautomation</groupId>
                        <artifactId>bacnet4j</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>lohbihler</groupId>
                        <artifactId>sero-scheduler</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>lohbihler</groupId>
                        <artifactId>sero-warp</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.code-house.bacnet4j</groupId>
                <artifactId>ip</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.code-house.bacnet4j</groupId>
                <artifactId>mstp</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-simple</artifactId>
                <version>${slf4j.version}</version>
            </dependency>

            <dependency>
                <groupId>com.infiniteautomation</groupId>
                <artifactId>bacnet4j</artifactId>
                <version>${bacnet4j.version}</version>
            </dependency>
            <dependency>
                <groupId>lohbihler</groupId>
                <artifactId>sero-scheduler</artifactId>
                <version>${sero-scheduler.version}</version>
            </dependency>
            <dependency>
                <groupId>lohbihler</groupId>
                <artifactId>sero-warp</artifactId>
                <version>${sero-warp.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>${commons-lang3.version}</version>
            </dependency>

            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-log4j12</artifactId>
                <version>${slf4j.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>${log4j.version}</version>
                <scope>test</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>maven-bundle-plugin</artifactId>
                    <version>4.2.1</version>
                    <configuration>
                        <instructions>
                            <Import-Package>${osgi.import}</Import-Package>
                            <Export-Package>${osgi.export}</Export-Package>
                            <_nouses>true</_nouses>
                        </instructions>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <configuration>
                        <autoVersionSubmodules>true</autoVersionSubmodules>
                        <useReleaseProfile>false</useReleaseProfile>
                        <preparationGoals>clean install</preparationGoals>
                        <goals>deploy</goals>
                        <releaseProfiles>release</releaseProfiles>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>11</source>
                    <target>11</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
            </plugin>
        </plugins>
    </build>

</project>