<?xml version="1.0" encoding="UTF-8"?>
<!-- Licensed to the Rhiot under one or more contributor license agreements.
  See the NOTICE file distributed with this work for additional information
  regarding copyright ownership. The licenses this file to You under the Apache
  License, Version 2.0 (the "License"); you may not use this file except in
  compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software distributed
  under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
  OR CONDITIONS OF ANY KIND, either express or implied. See the License for
  the specific language governing permissions and limitations under the License. -->
<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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>  <!-- should be removed -->
    <groupId>io.rhiot</groupId>
    <artifactId>rhiot-gateway-components</artifactId>
    <version>0.1.4</version>
  </parent>

  <name>Rhiot :: Gateway :: Camel components :: Pi4j</name>
  <artifactId>camel-pi4j</artifactId>
  <packaging>bundle</packaging>
  <description>Camel Raspberry Pi Component</description>

  <properties>
    <commons-cli.version>1.2</commons-cli.version>

    <camel.osgi.export.pkg>
          io.rhiot.component.pi4j.*,
          io.rhiot.component.pi4j.i2c.*,
          io.rhiot.component.pi4j.gpio.*,
          io.rhiot.component.pi4j.converter.*
    </camel.osgi.export.pkg>
    <camel.osgi.export.service>
    			org.apache.camel.spi.ComponentResolver;component=pi4j-gpio,
    			org.apache.camel.spi.ComponentResolver;component=pi4j-i2c
    </camel.osgi.export.service>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-core</artifactId>
    </dependency>

    <dependency>
      <groupId>com.pi4j</groupId>
      <artifactId>pi4j-core</artifactId>
    </dependency>
    <dependency>
      <groupId>com.pi4j</groupId>
      <artifactId>pi4j-device</artifactId>
    </dependency>
    <dependency>
      <groupId>com.pi4j</groupId>
      <artifactId>pi4j-gpio-extension</artifactId>
    </dependency>
    <dependency>
      <groupId>com.pi4j</groupId>
      <artifactId>pi4j-service</artifactId>
    </dependency>

    <dependency>
      <groupId>commons-cli</groupId>
      <artifactId>commons-cli</artifactId>
      <version>${commons-cli.version}</version>
    </dependency>

    <!-- logging -->
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <scope>test</scope>
    </dependency>

    <!-- testing -->
    <dependency>
      <groupId>io.rhiot</groupId>
      <artifactId>camel-pi4j-mock</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-test</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <profiles>
    <profile>
      <id>CopyDependencyforLab</id>
      <dependencies>

        <dependency>
          <groupId>org.apache.camel</groupId>
          <artifactId>camel-stream</artifactId>
          <!-- use the same version as your Camel core version -->
        </dependency>

        <dependency>
          <groupId>org.apache.camel</groupId>
          <artifactId>camel-mqtt</artifactId>
        </dependency>
      </dependencies>
    </profile>
  </profiles>
</project>
