mirror of
https://github.com/sbt/sbt.git
synced 2026-09-05 17:25:23 +02:00
sbtPlugin always rewrote its generated sbt/sbt.autoplugins / sbt/sbt.builds descriptor even when plugin discovery returned identical names. The changed descriptor mtime invalidated the package inputs, so a second direct packageBin or assembly rebuilt its JAR unnecessarily. Normalize the names as before, then write only if the descriptor is absent or its existing lines differ. Unchanged discovery now leaves the descriptor and artifact inputs untouched, while adding or removing an AutoPlugin writes a new descriptor and correctly rebuilds the JAR. Co-authored-by: Codex <[email protected]>