1
- import ReleaseTransformations ._
2
- import Dependencies ._
1
+ import ReleaseTransformations .*
2
+ import sbtversionpolicy .withsbtrelease .ReleaseVersion
3
+ import Dependencies .*
3
4
4
- lazy val baseSettings = Seq (
5
+ lazy val artifactProducingProjectSettings = Seq (
5
6
scalaVersion := " 2.13.16" ,
6
7
organization := " com.madgag.scala-git" ,
7
- scmInfo := Some (ScmInfo (
8
- url(" https://github.com/rtyley/scala-git" ),
9
- " scm:git:[email protected] :rtyley/scala-git.git"
10
- )),
11
8
licenses := Seq (License .Apache2 ),
12
- scalacOptions ++= Seq (" -deprecation" , " -unchecked" ),
9
+ scalacOptions ++= Seq (" -deprecation" , " -unchecked" , " -release:11 " ),
13
10
libraryDependencies ++= Seq (madgagCompress % Test , scalatest % Test )
14
11
)
15
12
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 )
17
14
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 * )
19
16
20
17
ThisBuild / Test / testOptions +=
21
18
Tests .Argument (TestFrameworks .ScalaTest , " -u" , s " test-results/scala- ${scalaVersion.value}" , " -o" )
22
19
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,
29
23
releaseCrossBuild := true , // true if you cross-build the project for multiple Scala versions
30
24
releaseProcess := Seq [ReleaseStep ](
31
25
checkSnapshotDependencies,
@@ -35,12 +29,8 @@ lazy val root = (project in file(".")).aggregate(`scala-git`, `scala-git-test`).
35
29
setReleaseVersion,
36
30
commitReleaseVersion,
37
31
tagRelease,
38
- // For non cross-build projects, use releaseStepCommand("publishSigned")
39
- releaseStepCommandAndRemaining(" +publishSigned" ),
40
- releaseStepCommand(" sonatypeBundleRelease" ),
41
32
setNextVersion,
42
- commitNextVersion,
43
- pushChanges
33
+ commitNextVersion
44
34
)
45
35
)
46
36
0 commit comments