Merge pull request #8388 from eed3si9n/wip/history

[2.x] fix: Fixes JLine history
This commit is contained in:
eugene yokota 2025-11-25 23:37:39 -05:00 committed by GitHub
commit e7c969f1bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 6 deletions

View File

@ -544,12 +544,7 @@ object Defaults extends BuildCommon {
def paths: Seq[Setting[?]] = Seq(
baseDirectory := thisProject.value.base,
target := rootOutputDirectory.value.resolve(outputPath.value).toFile(),
// Use a different history path for jline3 because the jline2 format is
// incompatible. By sbt 1.4.0, we should consider revering this to t / ".history"
// and possibly rewriting the jline2 history in a jline3 compatible format if the
// history file is incompatible. For now, just use a different file to facilitate
// going back and forth between 1.3.x and 1.4.x.
historyPath := (historyPath or target(t => Option(t / ".history3"))).value,
historyPath := (historyPath or rootOutputDirectory(t => Option(t.toFile() / ".history"))).value,
sourceDirectory := baseDirectory.value / "src",
sourceManaged := target.value / "src_managed",
resourceManaged := target.value / "resource_managed",