|
1 | 1 | lazy val jacocoVersion = "0.8.7" |
2 | 2 | lazy val circeVersion = "0.8.0" |
3 | 3 |
|
4 | | -ThisBuild / organization := "com.github.sbt" |
5 | 4 | ThisBuild / version := { |
6 | | - if ((ThisBuild / isSnapshot).value) (ThisBuild / version).value + "-SNAPSHOT" |
| 5 | + if ((ThisBuild / isSnapshot).value) "3.4.0" + "-SNAPSHOT" |
7 | 6 | else (ThisBuild / version).value |
8 | 7 | } |
9 | 8 | ThisBuild / scalaVersion := "2.12.15" |
10 | | -ThisBuild / licenses += (("Eclipse Public License v1.0", url("http://www.eclipse.org/legal/epl-v10.html"))) |
11 | 9 |
|
12 | 10 | lazy val jacocoPlugin = (project in file(".")) |
13 | 11 | .enablePlugins(SbtPlugin) |
@@ -63,4 +61,35 @@ lazy val jacocoPlugin = (project in file(".")) |
63 | 61 | |""".stripMargin |
64 | 62 | ) |
65 | 63 | ) |
| 64 | + |
| 65 | + scriptedLaunchOpts := { |
| 66 | + scriptedLaunchOpts.value ++ |
| 67 | + Seq("-Xmx1024M", "-Dplugin.version=" + version.value) |
| 68 | + } |
| 69 | + |
| 70 | + scriptedBufferLog := false |
66 | 71 | }) |
| 72 | + |
| 73 | +Global / onChangedBuildSource := ReloadOnSourceChanges |
| 74 | +ThisBuild / organization := "com.github.sbt" |
| 75 | +ThisBuild / description := "an sbt plugin for JaCoCo Code Coverage" |
| 76 | +ThisBuild / homepage := Some(url("https://www.scala-sbt.org/sbt-jacoco/")) |
| 77 | +ThisBuild / licenses += (("Eclipse Public License v1.0", url("http://www.eclipse.org/legal/epl-v10.html"))) |
| 78 | +ThisBuild / developers := List( |
| 79 | + Developer( |
| 80 | + "jmhofer", |
| 81 | + "Joachim Hofer", |
| 82 | + "@jmhofer", |
| 83 | + url("https://github.com/jmhofer") |
| 84 | + ) |
| 85 | +) |
| 86 | +ThisBuild / pomIncludeRepository := { _ => |
| 87 | + false |
| 88 | +} |
| 89 | +ThisBuild / publishTo := { |
| 90 | + val nexus = "https://oss.sonatype.org/" |
| 91 | + if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") |
| 92 | + else Some("releases" at nexus + "service/local/staging/deploy/maven2") |
| 93 | +} |
| 94 | +ThisBuild / publishMavenStyle := true |
| 95 | +ThisBuild / dynverSonatypeSnapshots := true |
0 commit comments