restricting resolvers to a subset of dependencies

10 views
Skip to first unread message

Scott Clasen

unread,
May 3, 2012, 3:28:02 PM5/3/12
to simple-b...@googlegroups.com
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?

Mark Harrah

unread,
May 4, 2012, 7:51:50 AM5/4/12
to simple-b...@googlegroups.com
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$

Scott Clasen

unread,
May 4, 2012, 3:50:04 PM5/4/12
to simple-b...@googlegroups.com
Nice, thanks Mark!
Reply all
Reply to author
Forward
0 new messages