mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 08:34:34 +02:00
Add back SbtExclusionRule companion implicit lifts
This commit is contained in:
@@ -766,7 +766,8 @@
|
||||
{ "name": "artifact", "type": "String" },
|
||||
{ "name": "configurations", "type": "String*" },
|
||||
{ "name": "crossVersion", "type": "sbt.librarymanagement.CrossVersion" }
|
||||
]
|
||||
],
|
||||
"parentsCompanion": "sbt.internal.librarymanagement.SbtExclusionRuleFunctions"
|
||||
},
|
||||
{
|
||||
"name": "UpdateReportLite",
|
||||
|
||||
+17
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user