File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed
src/sbt-test/scoverage/scalac-plugin-version Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ lazy val root = (project in file(" ." )).settings(
2
+ coverageEnabled := true ,
3
+ coverageScalacPluginVersion := " 1.1.0"
4
+ )
5
+ TaskKey [Unit ](" check" ) := {
6
+ assert(
7
+ libraryDependencies.value
8
+ .filter(module =>
9
+ module.organization == " org.scoverage" && module.revision == " 1.1.0" )
10
+ .size == 2 )
11
+ }
Original file line number Diff line number Diff line change
1
+ // The Typesafe repository
2
+ resolvers += " Typesafe repository" at " http://repo.typesafe.com/typesafe/releases/"
3
+
4
+ // scoverage needs this
5
+ resolvers += Classpaths .sbtPluginReleases
6
+
7
+ {
8
+ val pluginVersion = System .getProperty(" plugin.version" )
9
+ if (pluginVersion == null )
10
+ throw new RuntimeException (""" |The system property 'plugin.version' is not defined.
11
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin)
12
+ else addSbtPlugin(" org.scoverage" %% " sbt-scoverage" % pluginVersion)
13
+ }
14
+
15
+
Original file line number Diff line number Diff line change
1
+ # assert coverageScalacPluginVersion is taken into account when generating libraryDependencies
2
+ > check
You can’t perform that action at this time.
0 commit comments