mirror of https://github.com/sbt/sbt.git
Merge pull request #8240 from eed3si9n/wip/export-jar
[2.x] fix: Fixes exportJars false support
This commit is contained in:
commit
e287a030c5
|
|
@ -2614,7 +2614,9 @@ object Classpaths {
|
|||
if isMeta && !force then (mjars ++ sbtCp).distinct
|
||||
else mjars
|
||||
},
|
||||
exportedProducts := ClasspathImpl.trackedExportedProducts(TrackLevel.TrackAlways).value,
|
||||
exportedProducts := Def.uncached(
|
||||
ClasspathImpl.trackedExportedProducts(TrackLevel.TrackAlways).value
|
||||
),
|
||||
exportedProductsIfMissing := ClasspathImpl
|
||||
.trackedExportedProducts(TrackLevel.TrackIfMissing)
|
||||
.value,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
package example
|
||||
|
||||
@main def main(args: String*): Unit =
|
||||
println("hi")
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
Global / localCacheDirectory := baseDirectory.value / "diskcache"
|
||||
|
||||
// https://github.com/sbt/sbt/issues/8225
|
||||
exportJars := false
|
||||
libraryDependencies += "org.scalameta" %% "munit" % "1.0.0" % Test
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
> compile
|
||||
|
||||
> show Compile/fullClasspath
|
||||
Loading…
Reference in New Issue