Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Bintray maven repository with Ivy

Tags:

java

bintray

ivy

I'm considering using using bintray to host some project dependencies in a maven repository. My problem is I'm using Ivy and I can't seem to figure out how to take this maven configuration (supplied by bintray):

<?xml version="1.0" encoding="UTF-8" ?>
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
  <profiles>
    <profile>
      <repositories>
        <repository>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <id>central</id>
          <name>bintray</name>
          <url>http://dl.bintray.com/content/example/external-deps</url>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <id>central</id>
          <name>bintray-plugins</name>
          <url>http://dl.bintray.com/content/example/external-deps</url>
        </pluginRepository>
      </pluginRepositories>
      <id>bintray</id>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>bintray</activeProfile>
  </activeProfiles>
</settings>

and turn it into something that Ivy can use. Can anyone help me with this?

like image 700
CtrlF Avatar asked Apr 15 '13 22:04

CtrlF


1 Answers

You can just add the repository like this:

<ivysettings>
    <resolvers>
        <ibiblio name="bintray"
                 m2compatible="true"
                 root="http://dl.bintray.com/content/example/external-deps"/>
    </resolvers>
</ivysettings>
like image 145
carlspring Avatar answered Oct 07 '22 09:10

carlspring