<?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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>gateways</artifactId>
    <groupId>io.snamp.gateways</groupId>
    <version>2.0.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>influx</artifactId>
  <packaging>bundle</packaging>
  <name>InfluxDB Gateway</name>
  <version>2.0.0</version>
  <description>Gateway that dumps all metrics into InfluxDB</description>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <artifactSet>
            <excludes>
              <exclude>com.google.guava:guava:jar:</exclude>
              <exclude>org.mockito:mockito-all:jar:</exclude>
            </excludes>
          </artifactSet>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>snamp-${project.artifactId}-gateway</Bundle-SymbolicName>
            <Bundle-Activator>com.bytex.snamp.gateway.influx.InfluxGatewayActivator</Bundle-Activator>
            <Export-Package />
            <Import-Package>com.bytex.snamp,
                            com.bytex.snamp.concurrent,
                            com.bytex.snamp.configuration,
                            com.bytex.snamp.connector,
                            com.bytex.snamp.connector.notifications,
                            com.bytex.snamp.core,
                            com.bytex.snamp.gateway,
                            com.bytex.snamp.gateway.modeling,
                            com.bytex.snamp.instrumentation.measurements,
                            com.bytex.snamp.instrumentation.measurements.jmx,
                            com.bytex.snamp.internal,
                            com.bytex.snamp.jmx,
                            com.google.common.base,
                            com.google.common.collect,
                            com.google.common.escape,
                            javax.management,
                            javax.management.openmbean,
                            javax.net.ssl,
                            javax.net,
                            org.osgi.framework,
                            org.osgi.service.cm</Import-Package>
            <Provide-Capability>com.bytex.snamp.gateway; type=influx</Provide-Capability>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>io.snamp</groupId>
      <artifactId>framework</artifactId>
      <version>2.0.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>io.snamp.instrumentation</groupId>
      <artifactId>core</artifactId>
      <version>1.0.0</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>jackson-core-asl</artifactId>
          <groupId>org.codehaus.jackson</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jackson-mapper-asl</artifactId>
          <groupId>org.codehaus.jackson</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.core</artifactId>
      <version>5.0.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.compendium</artifactId>
      <version>5.0.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
      <version>19.0</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
</project>

