restricting resolvers to a subset of dependencies

Showing 1-3 of 3 messages
restricting resolvers to a subset of dependencies Scott Clasen 5/3/12 12:28 PM
If I remember correctly there was a way in sbt 0.7.x to declare that a resolver should only be used to resolve some subset of the dependencies.

Does this functionality exist in 0.11.x?
Re: [sbt] restricting resolvers to a subset of dependencies Mark Harrah 5/4/12 4:51 AM
Yes, it is called module configurations.

moduleConfigurations +=
  ModuleConfiguration("org.example", "demo", "1.0", "myrepo" at "http://...")

The version is optional and defaults to all versions.  The module name is optional and defaults to all modules for the organization.  The identifiers allow wildcards, so org.apache.* would be allowed, for example.  See the API documentation for ModuleConfiguration [1] and its companion object [2].

-Mark

[1] http://harrah.github.com/xsbt/latest/api/index.html#sbt.ModuleConfiguration
[2] http://harrah.github.com/xsbt/latest/api/index.html#sbt.ModuleConfiguration$
Re: [sbt] restricting resolvers to a subset of dependencies Scott Clasen 5/4/12 12:50 PM
Nice, thanks Mark!