sbt/sbt

Clean step doesn't clean sonatype caches on sbt2

クローズ

#9,389 opened on 2026/06/25

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Scala (1,036 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (4,928 個のスター)
PR merge metrics
 (PR metrics pending)

説明

using sbt 2.0.0 sbt-release 1.5.0 with config like

releaseVersion := identity // workaround for sbt/sbt-release#600 
releaseProcess := Seq[ReleaseStep](
  checkSnapshotDependencies,
  inquireVersions,
  runClean,
  runTest,
  //  setReleaseVersion,
  //  commitReleaseVersion,
  tagRelease,
  releaseStepCommandAndRemaining("publishSigned"),
  releaseStepCommand("sonaRelease"),
  setNextVersion,
  commitNextVersion,
  pushChanges
)

running release will upload whatever versions were already uploaded and are cached locally workaround is to add a step like this

ReleaseStep(action = { state =>
  IO.delete(file("target/sona-bundle"))
  IO.delete(file("target/sona-staging"))
  state
})

コントリビューターガイド