mirror of https://github.com/sbt/sbt.git
Add back SbtExclusionRule companion implicit lifts
This commit is contained in:
parent
6319da53c1
commit
04904ed34d
|
|
@ -766,7 +766,8 @@
|
||||||
{ "name": "artifact", "type": "String" },
|
{ "name": "artifact", "type": "String" },
|
||||||
{ "name": "configurations", "type": "String*" },
|
{ "name": "configurations", "type": "String*" },
|
||||||
{ "name": "crossVersion", "type": "sbt.librarymanagement.CrossVersion" }
|
{ "name": "crossVersion", "type": "sbt.librarymanagement.CrossVersion" }
|
||||||
]
|
],
|
||||||
|
"parentsCompanion": "sbt.internal.librarymanagement.SbtExclusionRuleFunctions"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "UpdateReportLite",
|
"name": "UpdateReportLite",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
package sbt.internal.librarymanagement
|
||||||
|
|
||||||
|
import sbt.internal.librarymanagement.impl._
|
||||||
|
import sbt.librarymanagement._
|
||||||
|
|
||||||
|
abstract class SbtExclusionRuleFunctions {
|
||||||
|
def apply(organization: String, name: String): SbtExclusionRule =
|
||||||
|
SbtExclusionRule(organization, name, "*", Vector.empty, Disabled())
|
||||||
|
|
||||||
|
def apply(organization: String): SbtExclusionRule = apply(organization, "*")
|
||||||
|
|
||||||
|
implicit def groupIdToExclusionRule(organization: GroupID): SbtExclusionRule = apply(organization.groupID)
|
||||||
|
implicit def stringToExclusionRule(organization: String): SbtExclusionRule = apply(organization)
|
||||||
|
|
||||||
|
implicit def groupArtifactIDToExclusionRule(gaid: GroupArtifactID): SbtExclusionRule =
|
||||||
|
SbtExclusionRule(gaid.groupID, gaid.artifactID, "*", Vector.empty, gaid.crossVersion)
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue