<?xml version="1.0"?>

<!--
Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
Licensed under the Apache License, Version 2.0 (see LICENSE).
-->

<!-- generated by pants! -->
<ivy-module version="2.0"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
            xmlns:m="http://ant.apache.org/ivy/maven">

  <info organisation="{{lib.org}}" module="{{lib.module}}"/>

  <configurations>
    <conf name="default"/>
    {{#lib.extra_configurations}}
    <conf name="{{.}}"/>
    {{/lib.extra_configurations}}
  </configurations>

  <dependencies>
    {{#lib.dependencies}}
    <dependency org="{{org}}"
                name="{{module}}"
                rev="{{version}}"
                {{#force}}force="true"{{/force}}
                {{^transitive}}transitive="false"{{/transitive}}
                {{#mutable}}changing="true"{{/mutable}}
    >
      <conf name="default" mapped="default"/>
      {{^any_have_url}}
      {{#lib.extra_configurations}}
      <conf name="{{.}}" mapped="{{.}}"/>
      {{/lib.extra_configurations}}
      {{/any_have_url}}
      {{#artifacts?}}
        {{#artifacts}}
      {{! NB: The 'name' and 'type' are required artifact fields. }}
      <artifact
        name="{{name}}"
        type="{{type_}}"
        {{#ext}}ext="{{.}}"{{/ext}}
        {{#url}}url="{{.}}"{{/url}}
        {{#classifier}}m:classifier="{{.}}"{{/classifier}}
      />
        {{/artifacts}}
        {{! When specifying explicit artifacts, extra optional conf resolution is turned off.
            These <include/>s turn the optional resolutions back on. }}
        {{^any_have_url}}
        {{#lib.extra_configurations}}
      <include name="{{module}}" conf="{{.}}"/>
        {{/lib.extra_configurations}}
        {{/any_have_url}}
      {{/artifacts?}}
      {{#excludes}}
      {{#name}}
      <exclude matcher="exact" org="{{org}}" module="{{name}}"/>
      {{/name}}
      {{^name}}
      <exclude matcher="exact" org="{{org}}"/>
      {{/name}}
      {{/excludes}}
    </dependency>
    {{/lib.dependencies}}
    {{#lib.excludes}}
    {{#name}}
    <exclude matcher="exact" org="{{org}}" module="{{name}}"/>
    {{/name}}
    {{^name}}
    <exclude matcher="exact" org="{{org}}"/>
    {{/name}}
    {{/lib.excludes}}
    {{#lib.overrides?}}
      {{#lib.overrides}}
    <override org="{{org}}" module="{{module}}" rev="{{version}}"/>
      {{/lib.overrides}}
    {{/lib.overrides?}}
  </dependencies>
</ivy-module>
