1
1
import ReleaseTransformations ._
2
2
3
3
lazy val baseSettings = Seq (
4
- scalaVersion := " 2.11.7 " ,
5
- crossScalaVersions := Seq (" 2.10.5 " , scalaVersion.value ),
4
+ scalaVersion := " 2.11.11 " ,
5
+ crossScalaVersions := Seq (scalaVersion.value, " 2.10.6 " ),
6
6
organization := " com.madgag.scala-git" ,
7
7
scmInfo := Some (ScmInfo (
8
8
url(" https://github.com/rtyley/scala-git" ),
@@ -16,23 +16,28 @@ lazy val `scala-git` = project.settings(baseSettings: _*).dependsOn(`scala-git-t
16
16
17
17
lazy val `scala-git-test` = project.in(file(" scala-git-test" )).settings(baseSettings : _* )
18
18
19
+ releasePublishArtifactsAction in ThisBuild := PgpKeys .publishSigned.value // Use publishSigned in publishArtifacts step
20
+
19
21
lazy val root = (project in file(" ." )).aggregate(`scala-git`, `scala-git-test`).
20
22
settings(baseSettings : _* ).settings(
21
- publishArtifact := false ,
22
- publish := {},
23
- publishLocal := {},
24
- releaseProcess := Seq [ ReleaseStep ](
25
- checkSnapshotDependencies,
26
- inquireVersions ,
27
- runClean ,
28
- runTest ,
29
- setReleaseVersion ,
30
- commitReleaseVersion ,
31
- tagRelease ,
32
- ReleaseStep (action = Command .process( " publishSigned " , _)) ,
33
- setNextVersion ,
34
- commitNextVersion ,
35
- ReleaseStep (action = Command .process( " sonatypeReleaseAll " , _)) ,
36
- pushChanges
37
- )
23
+ publishArtifact := false ,
24
+ publish := {},
25
+ publishLocal := {},
26
+ releaseCrossBuild := true , // true if you cross-build the project for multiple Scala versions
27
+ releaseProcess := Seq [ ReleaseStep ](
28
+ checkSnapshotDependencies ,
29
+ inquireVersions ,
30
+ runClean ,
31
+ runTest ,
32
+ setReleaseVersion ,
33
+ commitReleaseVersion ,
34
+ tagRelease ,
35
+ publishArtifacts ,
36
+ setNextVersion ,
37
+ commitNextVersion ,
38
+ releaseStepCommand( " sonatypeReleaseAll " ),
39
+ pushChanges
38
40
)
41
+ )
42
+
43
+
0 commit comments