发布网友 发布时间:2022-04-29 19:41
共1个回答
热心网友 时间:2022-06-21 23:57
摘要1.添加插件通过project/plugins.sbt下行添加到您的project/plugins.sbt文件来添加插件:addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.2")2.更新您的build.sbt文件:在文件顶部附近添加此导入:import ReleaseTransformations._更改版本为:version := (version in ThisBuild).value接下来,可以选择在末尾添加这段代码,并注释掉您不想执行的管道阶段(注意:这显然是默认管道) :releaseProcess := Seq[ReleaseStep]( checkSnapshotDependencies, // : ReleaseStep inquireVersions, // : ReleaseStep runTest, // : ReleaseStep setReleaseVersion, // : ReleaseStep commitReleaseVersion, // : ReleaseStep, performs the initial git checks tagRelease, // : ReleaseStep //publishArtifacts, // : ReleaseStep, checks whether `publishTo` is properly set up setNextVersion, // : ReleaseStep commitNextVersion // : ReleaseStep //pushChanges // : ReleaseStep, al咨询记录 · 回答于2021-04-11sperax play版本如何更新?亲~这道题由我来回答,打字需要一点时间,还请您耐心等待一下。 1.添加插件通过project/plugins.sbt下行添加到您的project/plugins.sbt文件来添加插件:addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.2")2.更新您的build.sbt文件:在文件顶部附近添加此导入:import ReleaseTransformations._更改版本为:version := (version in ThisBuild).value接下来,可以选择在末尾添加这段代码,并注释掉您不想执行的管道阶段(注意:这显然是默认管道) :releaseProcess := Seq[ReleaseStep]( checkSnapshotDependencies, // : ReleaseStep inquireVersions, // : ReleaseStep runTest, // : ReleaseStep setReleaseVersion, // : ReleaseStep commitReleaseVersion, // : ReleaseStep, performs the initial git checks tagRelease, // : ReleaseStep //publishArtifacts, // : ReleaseStep, checks whether `publishTo` is properly set up setNextVersion, // : ReleaseStep commitNextVersion // : ReleaseStep //pushChanges // : ReleaseStep, al