Skip to content

Commit

Permalink
Use class-path-util library
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Apr 21, 2023
1 parent 5e0af12 commit 84c51ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 58 deletions.
1 change: 1 addition & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ trait Cli extends CsModule with CoursierPublishModule with Launchers {
Deps.caseApp,
Deps.catsCore,
Deps.catsFree,
Deps.classPathUtil,
Deps.dataClass,
Deps.monadlessCats,
Deps.monadlessStdlib,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import coursier.cli.fetch.FetchParams
import coursier.cli.install.SharedChannelParams
import coursier.cli.options.SharedLaunchOptions
import coursier.cli.resolve.SharedResolveParams
import coursier.cli.util.ClassPathUtil
import coursier.cputil.ClassPathUtil

final case class SharedLaunchParams(
resolve: SharedResolveParams,
Expand Down Expand Up @@ -79,7 +79,7 @@ object SharedLaunchParams {
}

// check if those exist?
val extraJars = options.extraJars.flatMap(ClassPathUtil.classPath(_, sys.props.get))
val extraJars = options.extraJars.flatMap(ClassPathUtil.classPath(_))

(resolveV, artifactV, sharedLoaderV, propertiesV).mapN {
(resolve, artifact, sharedLoader, properties) =>
Expand Down
56 changes: 0 additions & 56 deletions modules/cli/src/main/scala/coursier/cli/util/ClassPathUtil.scala

This file was deleted.

1 change: 1 addition & 0 deletions project/deps.sc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ object Deps {
def catsCore = ivy"org.typelevel::cats-core:${Versions.cats}"
def catsFree = ivy"org.typelevel::cats-free:${Versions.cats}"
def catsEffect = ivy"org.typelevel::cats-effect::3.4.8"
def classPathUtil = ivy"io.get-coursier::class-path-util:0.1.1"
def collectionCompat = ivy"org.scala-lang.modules::scala-collection-compat::2.9.0"
def concurrentReferenceHashMap =
ivy"io.github.alexarchambault:concurrent-reference-hash-map:1.1.0"
Expand Down

0 comments on commit 84c51ff

Please sign in to comment.