Merge pull request #8240 from eed3si9n/wip/export-jar

[2.x] fix: Fixes exportJars false support
This commit is contained in:
eugene yokota 2025-08-26 01:46:08 -04:00 committed by GitHub
commit e287a030c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 1 deletions

View File

@ -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,

View File

@ -0,0 +1,4 @@
package example
@main def main(args: String*): Unit =
println("hi")

View File

@ -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

View File

@ -0,0 +1,3 @@
> compile
> show Compile/fullClasspath