Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
drop old sbt version support
  • Loading branch information
xuwei-k authored Oct 9, 2024
1 parent 0294152 commit 29abe82
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
matrix:
include:
- java: 8
sbt_version: "1.2.8"
sbt_version: "1.4.9"
- java: 8
- java: 21
steps:
Expand Down
14 changes: 12 additions & 2 deletions src/main/scala/Load.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,20 @@ object Load {
def reapply(newSettings: Seq[Setting[_]], structure: BuildStructure)(implicit display: Show[ScopedKey[_]]): BuildStructure =
{
val transformed = finalTransforms(newSettings)
val newData = Def.make(transformed)(structure.delegates, structure.scopeLocal, display)
val (compiledMap, newData) = Def.makeWithCompiledMap(transformed)(structure.delegates, structure.scopeLocal, display)
val newIndex = structureIndex(newData, transformed, index => BuildUtil(structure.root, structure.units, index, newData), structure.units)
val newStreams = BuildStreams.mkStreams(structure.units, structure.root, newData)
new BuildStructure(units = structure.units, root = structure.root, settings = transformed, data = newData, index = newIndex, streams = newStreams, delegates = structure.delegates, scopeLocal = structure.scopeLocal)
new BuildStructure(
units = structure.units,
root = structure.root,
settings = transformed,
data = newData,
index = newIndex,
streams = newStreams,
delegates = structure.delegates,
scopeLocal = structure.scopeLocal,
compiledMap = compiledMap,
)
}

// map dependencies on the special tasks:
Expand Down

0 comments on commit 29abe82

Please sign in to comment.