mirror of https://github.com/sbt/sbt.git
Merge pull request #296 from Atry/0.11
Allow `ModuleID % Configuration`
This commit is contained in:
commit
0ad16f6171
|
|
@ -46,6 +46,8 @@ final class GroupArtifactID private[sbt] (groupID: String, artifactID: String, c
|
|||
}
|
||||
final class ModuleIDConfigurable private[sbt] (moduleID: ModuleID)
|
||||
{
|
||||
def % (configuration: Configuration): ModuleID = %(configuration.name)
|
||||
|
||||
def % (configurations: String): ModuleID =
|
||||
{
|
||||
nonEmpty(configurations, "Configurations")
|
||||
|
|
|
|||
|
|
@ -149,6 +149,8 @@ object Project extends Init[Scope] with ProjectExtra
|
|||
def defaultSettings: Seq[Setting[_]] = Defaults.defaultSettings
|
||||
|
||||
final class Constructor(p: ProjectReference) {
|
||||
def %(conf: Configuration): ClasspathDependency = %(conf.name)
|
||||
|
||||
def %(conf: String): ClasspathDependency = new ClasspathDependency(p, Some(conf))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue