foursquare / fsqio

A monorepo that holds all of Foursquare's opensource projects
Apache License 2.0
254 stars 54 forks source link

In order to consume published jars, you need to add too many resolvers #3

Closed mateor closed 6 years ago

mateor commented 8 years ago

Currently we fetch 3rdparty dependencies from multiple resolvers. Consuming published jars (say from sbt) requires that the sbt project be aware of all of those resolvers. A couple of these resolvers are only needed for single jars, this issue is tracking the need for a better solution.

If you are trying to consume io.fsq artifacts in an sbt project you will need to point it at all the resolvers we use. That list is in the pants.ini file under [pom-resolve] maven_repos. As of the time of this issue, adding these resolvers to an sbt project looks like:

  resolvers += "Sonatype OSS Releases" at "https://oss.sonatype.org/content/repositories/releases"

  resolvers += "geotools" at "http://download.osgeo.org/webdav/geotools"

  resolvers += "maven" at "https://repo.maven.apache.org/maven2"

  resolvers += "twitter" at "https://maven.twttr.com"

  resolvers += "jnegre" at "https://bintray.com/artifact/download/jnegre/maven"

  resolvers += "con-jars" at "http://conjars.org/repos"

  resolvers += "clojars" at "http://clojars.org/repo"

We are considering how to make this easier in the future but for now you will need to be able to fetch jars from all of the above repos.

mateor commented 6 years ago

This is still true today - but not clear that can be solved from our end. But we now include a fully configured ivysettings that can represent these repositories if you are using Pants as well: https://github.com/foursquare/fsqio/blob/master/build-support/ivy/fsqio/fsqio.ivysettings.xml