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