mirror of https://github.com/sbt/sbt.git
Add helper method
This commit is contained in:
parent
5e5939d693
commit
d8ea3b91d5
|
|
@ -15,6 +15,8 @@ import dataclass.data
|
|||
object ModuleMatchers {
|
||||
def all: ModuleMatchers =
|
||||
ModuleMatchers(Set.empty, Set.empty)
|
||||
def only(organization: String, moduleName: String): ModuleMatchers =
|
||||
ModuleMatchers(Set.empty, Set(Module(Organization(organization), ModuleName(moduleName), Map())), includeByDefault = false)
|
||||
def only(mod: Module): ModuleMatchers =
|
||||
ModuleMatchers(Set.empty, Set(mod), includeByDefault = false)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue