Skip to content

Commit

Permalink
Don't set default withAssemblyUnzipDirectory & use withAssemblyDirect…
Browse files Browse the repository at this point in the history
…ory as fallback
  • Loading branch information
er1c committed Sep 22, 2021
1 parent 370c795 commit 4a48749
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/sbtassembly/Assembly.scala
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ object Assembly {
def assembleMappings(classpath: Classpath, dependencies: Classpath,
ao: AssemblyOption, log: Logger): Vector[MappingSet] = {
val assemblyDir = ao.assemblyDirectory.get
val assemblyUnzipDir = ao.assemblyUnzipDirectory.get
val assemblyUnzipDir = (ao.assemblyUnzipDirectory orElse ao.assemblyDirectory).get

if (!ao.cacheOutput) IO.delete(assemblyDir)
if (!ao.cacheUnzip) IO.delete(assemblyUnzipDir)
Expand Down
1 change: 0 additions & 1 deletion src/main/scala/sbtassembly/AssemblyPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ object AssemblyPlugin extends sbt.AutoPlugin {
val s = streams.value
AssemblyOption()
.withAssemblyDirectory(s.cacheDirectory / "assembly")
.withAssemblyUnzipDirectory(s.cacheDirectory / "assembly")
.withIncludeBin((assembleArtifact in packageBin).value)
.withIncludeScala((assembleArtifact in assemblyPackageScala).value)
.withIncludeDependency((assembleArtifact in assemblyPackageDependency).value)
Expand Down

0 comments on commit 4a48749

Please sign in to comment.