Skip to content

Commit

Permalink
Removed some deprecated coursier helper methods (#2184)
Browse files Browse the repository at this point in the history
Pull request: #2184
  • Loading branch information
lefou authored Dec 10, 2022
1 parent 98e35cd commit d17f020
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 92 deletions.
46 changes: 0 additions & 46 deletions main/src/mill/modules/Jvm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -759,50 +759,4 @@ object Jvm {
}
}

@deprecated(
"Use alternative overload. This one is only for binary backwards compatibility.",
"mill after 0.10.0"
)
def resolveDependencies(
repositories: Seq[Repository],
deps: IterableOnce[coursier.Dependency],
force: IterableOnce[coursier.Dependency],
sources: Boolean,
mapDependencies: Option[Dependency => Dependency],
customizer: Option[coursier.core.Resolution => coursier.core.Resolution],
ctx: Option[mill.api.Ctx.Log]
): Result[Agg[PathRef]] =
resolveDependencies(
repositories = repositories,
deps = deps,
force = force,
sources = sources,
mapDependencies = mapDependencies,
customizer = customizer,
ctx = ctx,
coursierCacheCustomizer = None
)

@deprecated(
"Use alternative overload. This one is only for binary backwards compatibility.",
"mill after 0.10.0"
)
def resolveDependenciesMetadata(
repositories: Seq[Repository],
deps: IterableOnce[coursier.Dependency],
force: IterableOnce[coursier.Dependency],
mapDependencies: Option[Dependency => Dependency],
customizer: Option[coursier.core.Resolution => coursier.core.Resolution],
ctx: Option[mill.api.Ctx.Log]
): (Seq[Dependency], Resolution) =
resolveDependenciesMetadata(
repositories = repositories,
deps = deps,
force = force,
mapDependencies = mapDependencies,
customizer = customizer,
ctx = ctx,
coursierCacheCustomizer = None
)

}
46 changes: 0 additions & 46 deletions scalalib/src/Lib.scala
Original file line number Diff line number Diff line change
Expand Up @@ -124,52 +124,6 @@ object Lib {
ivy"$scalaOrganization:scala-library:$scalaVersion".forceVersion()
)

@deprecated(
"User other overload instead. Only for binary backward compatibility.",
"mill after 0.10.0"
)
def resolveDependenciesMetadata(
repositories: Seq[Repository],
depToDependency: Dep => coursier.Dependency,
deps: IterableOnce[Dep],
mapDependencies: Option[Dependency => Dependency],
customizer: Option[coursier.core.Resolution => coursier.core.Resolution],
ctx: Option[Ctx.Log]
): (Seq[Dependency], Resolution) =
resolveDependenciesMetadata(
repositories = repositories,
depToDependency = depToDependency,
deps = deps,
mapDependencies = mapDependencies,
customizer = customizer,
ctx = ctx,
coursierCacheCustomizer = None
)

@deprecated(
"User other overload instead. Only for binary backward compatibility.",
"mill after 0.10.0"
)
def resolveDependencies(
repositories: Seq[Repository],
depToDependency: Dep => coursier.Dependency,
deps: IterableOnce[Dep],
sources: Boolean,
mapDependencies: Option[Dependency => Dependency],
customizer: Option[coursier.core.Resolution => coursier.core.Resolution],
ctx: Option[Ctx.Log]
): Result[Agg[PathRef]] =
resolveDependencies(
repositories = repositories,
depToDependency = depToDependency,
deps = deps,
sources = sources,
mapDependencies = mapDependencies,
customizer = customizer,
ctx = ctx,
coursierCacheCustomizer = None
)

def findSourceFiles(sources: Seq[PathRef], extensions: Seq[String]): Seq[os.Path] = {
def isHiddenFile(path: os.Path) = path.last.startsWith(".")
for {
Expand Down

0 comments on commit d17f020

Please sign in to comment.