<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright 2015 Red Hat, Inc. and/or its affiliates
    and other contributors as indicated by the @author tags.

    Licensed 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>
    <groupId>org.hawkular</groupId>
    <artifactId>hawkular-parent</artifactId>
    <version>18</version>
  </parent>

  <groupId>org.hawkular.agent</groupId>
  <artifactId>hawkular-agent-parent</artifactId>
  <version>0.3.3.Final</version>
  <packaging>pom</packaging>
  <name>Hawkular Agent Parent</name>
  <inceptionYear>2015</inceptionYear>

  <scm>
    <connection>scm:git:git@github.com:hawkular/hawkular-agent.git</connection>
    <developerConnection>scm:git:git@github.com:hawkular/hawkular-agent.git</developerConnection>
    <url>https://github.com/hawkular/hawkular-agent</url>
    <tag>0.3.3.Final</tag>
  </scm>

  <modules>
    <module>hawkular-dmr-client</module>
    <module>hawkular-wildfly-monitor</module>
  </modules>

  <properties>
    <version.com.squareup.okhttp>2.4.0</version.com.squareup.okhttp>
    <version.io.dropwizard.metrics>3.1.0</version.io.dropwizard.metrics>
    <!-- TODO DELETE THIS WHEN WE NO LONGER SEND TWO MESSAGES PER METRIC -->
    <version.org.apache.httpcomponents>4.4.1</version.org.apache.httpcomponents>
    <version.org.hawkular.bus>0.3.3.Final</version.org.hawkular.bus>
    <version.org.hawkular.inventory>0.2.0.Alpha2</version.org.hawkular.inventory>
    <version.org.hawkular.metrics>0.5.0.Final</version.org.hawkular.metrics>
    <version.org.jgrapht>0.9.1</version.org.jgrapht>
  </properties>

  <dependencyManagement>
    <dependencies>
      <!-- CONVENTIONS: -->
      <!-- - Dependencies must be SORTED ALPHABETICALLY on groupId -->
      <!-- - Do not declare <scope> (exception: import) or <optional>: a child module will declare scope/optional itself. -->
      <!-- - Always extract the version as a property. -->
      <!-- - A element's inner order is <groupId>, <artifactId>, [<type>,] [<classifier>,] <version> -->

      <dependency>
        <groupId>io.dropwizard.metrics</groupId>
        <artifactId>metrics-core</artifactId>
        <version>${version.io.dropwizard.metrics}</version>
      </dependency>

      <!-- TODO DELETE THIS WHEN WE NO LONGER SEND TWO MESSAGES PER METRIC -->
      <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>${version.org.apache.httpcomponents}</version>
      </dependency>

      <dependency>
        <groupId>com.squareup.okhttp</groupId>
        <artifactId>okhttp</artifactId>
        <version>${version.com.squareup.okhttp}</version>
      </dependency>

      <dependency>
        <groupId>com.squareup.okhttp</groupId>
        <artifactId>okhttp-ws</artifactId>
        <version>${version.com.squareup.okhttp}</version>
      </dependency>

      <dependency>
        <groupId>org.hawkular.bus</groupId>
        <artifactId>hawkular-feed-comm-api</artifactId>
        <version>${version.org.hawkular.bus}</version>
      </dependency>

      <dependency>
        <groupId>org.hawkular.bus</groupId>
        <artifactId>hawkular-bus-rest-client</artifactId>
        <version>${version.org.hawkular.bus}</version>
        <exclusions>
          <exclusion>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>org.hawkular.bus</groupId>
        <artifactId>hawkular-bus-common</artifactId>
        <version>${version.org.hawkular.bus}</version>
        <!-- we know that we never need to use these so don't pull them in -->
        <exclusions>
          <exclusion>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-all</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-jaas</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>org.hawkular.inventory</groupId>
        <artifactId>hawkular-inventory-json-helper</artifactId>
        <version>${version.org.hawkular.inventory}</version>
      </dependency>

      <dependency>
        <groupId>org.hawkular.metrics</groupId>
        <artifactId>clients-common</artifactId>
        <version>${version.org.hawkular.metrics}</version>
      </dependency>

      <dependency>
        <groupId>org.jgrapht</groupId>
        <artifactId>jgrapht-core</artifactId>
        <version>${version.org.jgrapht}</version>
      </dependency>

      <dependency>
        <groupId>org.wildfly.core</groupId>
        <artifactId>wildfly-controller</artifactId>
        <version>${version.org.wildfly.core}</version>
      </dependency>

      <dependency>
        <groupId>org.wildfly.core</groupId>
        <artifactId>wildfly-controller-client</artifactId>
        <version>${version.org.wildfly.core}</version>
      </dependency>

      <dependency>
        <groupId>org.wildfly</groupId>
        <artifactId>wildfly-dist</artifactId>
        <version>${version.org.wildfly}</version>
        <type>zip</type>
      </dependency>

      <dependency>
        <groupId>org.wildfly</groupId>
        <artifactId>wildfly-naming</artifactId>
        <version>${version.org.wildfly}</version>
      </dependency>

      <dependency>
        <groupId>org.wildfly.core</groupId>
        <artifactId>wildfly-server</artifactId>
        <version>${version.org.wildfly.core}</version>
      </dependency>

      <dependency>
        <groupId>org.wildfly.core</groupId>
        <artifactId>wildfly-subsystem-test</artifactId>
        <version>${version.org.wildfly.core}</version>
        <type>pom</type>
      </dependency>

      <dependency>
        <groupId>org.wildfly.core</groupId>
        <artifactId>wildfly-subsystem-test-framework</artifactId>
        <version>${version.org.wildfly.core}</version>
      </dependency>

    </dependencies>
  </dependencyManagement>

</project>

