Skip to content

Commit

Permalink
Attempt to override coursier cache location to a writable location
Browse files Browse the repository at this point in the history
  • Loading branch information
liucijus committed Dec 15, 2023
1 parent 584267b commit 48d627f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import org.specs2.specification.{AfterEach, Scope}
//noinspection TypeAnnotation
class CoursierDependencyResolverIT extends SpecificationWithJUnit with AfterEach {
sequential

System.setProperty("coursier.cache", System.getenv("TEST_TMPDIR"))

val fakeMavenRepository = new FakeMavenRepository()

"return only one entry for each dependency given transitive dependency has different scope" in new Context {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ class CoursierDependencyResolver(remoteRepoURLs: => List[String]) extends MavenD
val repositories = remoteRepoURLs.map(repo => MavenRepository(repo))
val dependencies = (baseDependencies ++ withManagedDependencies).map(toCoursierDependency)

val fetch = ResolutionProcess.fetch(repositories, Cache.default.fetch)
val fetch = ResolutionProcess.fetch(
repositories,
Cache.default.fetch
)

val resolution = Resolution()
.withRootDependencies(dependencies)
Expand Down

0 comments on commit 48d627f

Please # to comment.