Skip to content

Commit

Permalink
correct runClasspath for the benefit of e.g. tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pieter-bos committed Jun 29, 2023
1 parent 9e700f0 commit c00136f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions project/release.sc
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,19 @@ trait SeparatePackedResourcesModule extends JavaModule {
)
}

def compileClasspath: T[Agg[PathRef]] = T {
transitiveLocalPackedClasspath() ++
packedResources() ++
unmanagedClasspath() ++
resolvedIvyDeps()
}

def runClasspathElements = T {
val paths = localPackedClasspath().map(_.path) ++
upstreamAssemblyClasspath().map(_.path) ++
bareResourcePaths() ++
transitiveBareResourcePaths()
paths.map(_.toString)
}

def runClasspath = T {
localPackedClasspath() ++
upstreamAssemblyClasspath() ++
(bareResourcePaths() ++ transitiveBareResourcePaths()).map(PathRef(_))
}
}

trait ReleaseModule extends JavaModule with SeparatePackedResourcesModule {
Expand Down

0 comments on commit c00136f

Please sign in to comment.