1- import ReleaseTransformations ._
2- import Dependencies ._
1+ import ReleaseTransformations .*
2+ import sbtversionpolicy .withsbtrelease .ReleaseVersion
3+ import Dependencies .*
34
4- lazy val baseSettings = Seq (
5+ lazy val artifactProducingProjectSettings = Seq (
56 scalaVersion := " 2.13.16" ,
67 organization := " com.madgag.scala-git" ,
7- scmInfo := Some (ScmInfo (
8- url(" https://github.com/rtyley/scala-git" ),
9- " scm:git:git@github.com:rtyley/scala-git.git"
10- )),
118 licenses := Seq (License .Apache2 ),
12- scalacOptions ++= Seq (" -deprecation" , " -unchecked" ),
9+ scalacOptions ++= Seq (" -deprecation" , " -unchecked" , " -release:11 " ),
1310 libraryDependencies ++= Seq (madgagCompress % Test , scalatest % Test )
1411)
1512
16- lazy val `scala-git` = project.settings(baseSettings : _ * ).dependsOn(`scala-git-test` % Test )
13+ lazy val `scala-git` = project.settings(artifactProducingProjectSettings * ).dependsOn(`scala-git-test` % Test )
1714
18- lazy val `scala-git-test` = project.in(file(" scala-git-test" )).settings(baseSettings : _ * )
15+ lazy val `scala-git-test` = project.in(file(" scala-git-test" )).settings(artifactProducingProjectSettings * )
1916
2017ThisBuild / Test / testOptions +=
2118 Tests .Argument (TestFrameworks .ScalaTest , " -u" , s " test-results/scala- ${scalaVersion.value}" , " -o" )
2219
23-
24- lazy val root = (project in file(" ." )).aggregate(`scala-git`, `scala-git-test`).
25- settings(baseSettings : _* ).settings(
26- publishArtifact := false ,
27- publish := {},
28- publishLocal := {},
20+ lazy val root = (project in file(" ." )).aggregate(`scala-git`, `scala-git-test`).settings(
21+ publish / skip := true ,
22+ // releaseVersion := ReleaseVersion.fromAggregatedAssessedCompatibilityWithLatestRelease().value,
2923 releaseCrossBuild := true , // true if you cross-build the project for multiple Scala versions
3024 releaseProcess := Seq [ReleaseStep ](
3125 checkSnapshotDependencies,
@@ -35,12 +29,8 @@ lazy val root = (project in file(".")).aggregate(`scala-git`, `scala-git-test`).
3529 setReleaseVersion,
3630 commitReleaseVersion,
3731 tagRelease,
38- // For non cross-build projects, use releaseStepCommand("publishSigned")
39- releaseStepCommandAndRemaining(" +publishSigned" ),
40- releaseStepCommand(" sonatypeBundleRelease" ),
4132 setNextVersion,
42- commitNextVersion,
43- pushChanges
33+ commitNextVersion
4434 )
4535)
4636
0 commit comments