1
1
name := " sbt-scoverage"
2
- organization := " org.scoverage"
3
2
4
3
import sbt .ScriptedPlugin .autoImport .scriptedLaunchOpts
5
- import sbtrelease .ReleasePlugin .autoImport .ReleaseTransformations ._
6
4
7
- releaseProcess := Seq [ReleaseStep ](
8
- checkSnapshotDependencies,
9
- inquireVersions,
10
- runClean,
11
- releaseStepCommandAndRemaining(" test" ),
12
- setReleaseVersion,
13
- commitReleaseVersion,
14
- tagRelease,
15
- releaseStepCommandAndRemaining(" publishSigned" ),
16
- setNextVersion,
17
- commitNextVersion,
18
- pushChanges
5
+ def localSnapshotVersion = " 1.7.1-SNAPSHOT"
6
+ def isCI = System .getenv(" CI" ) != null
7
+
8
+ inThisBuild(
9
+ List (
10
+ organization := " org.scoverage" ,
11
+ homepage := Some (url(" http://scoverage.org/" )),
12
+ developers := List (
13
+ Developer (
14
+ " sksamuel" ,
15
+ " Stephen Samuel" ,
16
+
17
+ url(" https://github.com/sksamuel" )
18
+ ),
19
+ Developer (
20
+ " gslowikowski" ,
21
+ " Grzegorz Slowikowski" ,
22
+
23
+ url(" https://github.com/gslowikowski" )
24
+ )
25
+ ),
26
+ licenses := Seq (
27
+ " Apache-2.0" -> url(" http://www.apache.org/license/LICENSE-2.0" )
28
+ ),
29
+ scalaVersion := " 2.12.13" ,
30
+ version ~= { dynVer =>
31
+ if (isCI) dynVer
32
+ else localSnapshotVersion // only for local publishing
33
+ }
34
+ )
19
35
)
20
36
21
37
lazy val root = Project (" sbt-scoverage" , file(" ." ))
@@ -24,55 +40,22 @@ lazy val root = Project("sbt-scoverage", file("."))
24
40
libraryDependencies ++= Seq (
25
41
" org.scala-lang" % " scala-compiler" % scalaVersion.value % Compile
26
42
),
27
- libraryDependencies += " org.scoverage" %% " scalac-scoverage-plugin" % " 1.4.3" cross(CrossVersion .full),
28
- scalaVersion := " 2.12.13" ,
29
- publishMavenStyle := true ,
30
- publishConfiguration := publishConfiguration.value.withOverwrite(true ),
31
- publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true ),
32
- releasePublishArtifactsAction := PgpKeys .publishSigned.value,
43
+ libraryDependencies += " org.scoverage" %% " scalac-scoverage-plugin" % " 1.4.3" cross (CrossVersion .full),
33
44
Test / fork := false ,
34
45
Test / publishArtifact := false ,
35
46
Test / parallelExecution := false ,
36
- scalacOptions := Seq (" -unchecked " , " -deprecation " , " -feature " , " -encoding " , " utf8 " ),
37
- publishTo := {
38
- if (isSnapshot.value)
39
- Some ( " snapshots " at " https://oss.sonatype.org/content/repositories/snapshots " )
40
- else
41
- Some ( " releases " at " https://oss.sonatype.org/service/local/staging/deploy/maven2 " )
42
- } ,
47
+ scalacOptions := Seq (
48
+ " -unchecked " ,
49
+ " -deprecation " ,
50
+ " -feature " ,
51
+ " -encoding " ,
52
+ " utf8 "
53
+ ) ,
43
54
resolvers ++= {
44
55
if (isSnapshot.value) Seq (Resolver .sonatypeRepo(" snapshots" )) else Nil
45
56
},
46
57
scriptedLaunchOpts ++= Seq (
47
58
" -Xmx1024M" ,
48
59
" -Dplugin.version=" + version.value
49
- ),
50
- pomExtra := {
51
- <url >https:// github.com/ scoverage/ sbt- scoverage</url >
52
- <licenses >
53
- <license >
54
- <name >Apache 2 </name >
55
- <url >http:// www.apache.org/ licenses/ LICENSE - 2.0 </url >
56
- <distribution >repo</distribution >
57
- </license >
58
- </licenses >
59
- <scm >
60
- <url >git@ github.com: scoverage/ sbt- scoverage.git</url >
61
- <connection >scm: git@ github.com: scoverage/ sbt- scoverage.git</connection >
62
- </scm >
63
- <developers >
64
- <developer >
65
- <id >sksamuel</id >
66
- <name >sksamuel</name >
67
- <url >http:// github.com/ sksamuel</url >
68
- </developer >
69
- <developer >
70
- <id >gslowikowski</id >
71
- <name >Grzegorz Slowikowski </name >
72
- <url >http:// github.com/ gslowikowski</url >
73
- </developer >
74
- </developers >
75
- }
60
+ )
76
61
)
77
-
78
- scalariformAutoformat := false
0 commit comments