plugins - sbt: cobertura4sbt cannot be found from sbt 0.12 -
i use cobertura4sbt sbt plugin maven repository.
i added following lines project\plugins.sbt
:
resolvers += "sonatype oss snapshots" @ "https://oss.sonatype.org/content/groups/scala-tools" addsbtplugin("de.johoop" % "cobertura4sbt" % "1.0.0")
however, tried "sbt compile", appended local sbt , scala version number resolving path corresponding pom cannot found. miss anywhere?
[warn] ==== sonatype oss snapshots: tried [warn] https://oss.sonatype.org/content/groups/scala-tools/de/johoop/cobertura4sbt_2.9.2_0.12/1.0.0/cobertura4sbt-1.0.0.pom [warn] ==== public: tried
cobertura4sbt on sbt 0.7.4
the auto-postfixing of scala , sbt version added while in sbt distinguish plugins different releases of sbt. this source, cobertura4sbt looks built 0.7.4, author says plugin no longer maintained:
this sbt plug-in enables measure code coverage of great cobertura tool.
however, since cobertura not actively developed more, decided stop working on plugin time being, , instead started jacoco4sbt. please ponder using jacoco4sbt instead of plugin...
jacoco4sbt seems available latest sbt 0.13.0 too. either plugin choose, follow instruction in wiki.
jacoco4sbt on sbt 0.12.x
given log, assuming you're using sbt 0.12.x. jacoco4sbt sbt 0.12 published @ sonatype oss, , latest seems 2.0.0: https://oss.sonatype.org/content/groups/public/de/johoop/jacoco4sbt_2.9.2_0.12/2.0.0/
try putting in project/plugins.sbt
:
resolvers += resolver.sonatyperepo("public") addsbtplugin("de.johoop" % "jacoco4sbt" % "2.0.0")
and in jacoco.sbt
:
jacoco.settings
this loads jacoco:cover
task sbt shell, able run , report out in target/scala-2.10/jacoco
directory.
Comments
Post a Comment