11name := " sbt-scoverage"
2- organization := " org.scoverage"
32
43import sbt .ScriptedPlugin .autoImport .scriptedLaunchOpts
5- import sbtrelease .ReleasePlugin .autoImport .ReleaseTransformations ._
64
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+ " sam@sksamuel.com" ,
17+ url(" https://github.com/sksamuel" )
18+ ),
19+ Developer (
20+ " gslowikowski" ,
21+ " Grzegorz Slowikowski" ,
22+ " gslowikowski@gmail.com" ,
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+ )
1935)
2036
2137lazy val root = Project (" sbt-scoverage" , file(" ." ))
@@ -24,55 +40,22 @@ lazy val root = Project("sbt-scoverage", file("."))
2440 libraryDependencies ++= Seq (
2541 " org.scala-lang" % " scala-compiler" % scalaVersion.value % Compile
2642 ),
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),
3344 Test / fork := false ,
3445 Test / publishArtifact := false ,
3546 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+ ) ,
4354 resolvers ++= {
4455 if (isSnapshot.value) Seq (Resolver .sonatypeRepo(" snapshots" )) else Nil
4556 },
4657 scriptedLaunchOpts ++= Seq (
4758 " -Xmx1024M" ,
4859 " -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+ )
7661 )
77-
78- scalariformAutoformat := false
0 commit comments