Skip to content

Commit d0627ac

Browse files
authored
Merge pull request #171 from eed3si9n/wip/sonatype
Add a few more settings for publishing
2 parents 1c90009 + 6ffe1b7 commit d0627ac

File tree

2 files changed

+32
-9
lines changed

2 files changed

+32
-9
lines changed

build.sbt

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
lazy val jacocoVersion = "0.8.7"
22
lazy val circeVersion = "0.8.0"
33

4-
ThisBuild / organization := "com.github.sbt"
54
ThisBuild / version := {
6-
if ((ThisBuild / isSnapshot).value) (ThisBuild / version).value + "-SNAPSHOT"
5+
if ((ThisBuild / isSnapshot).value) "3.4.0" + "-SNAPSHOT"
76
else (ThisBuild / version).value
87
}
98
ThisBuild / scalaVersion := "2.12.15"
10-
ThisBuild / licenses += (("Eclipse Public License v1.0", url("http://www.eclipse.org/legal/epl-v10.html")))
119

1210
lazy val jacocoPlugin = (project in file("."))
1311
.enablePlugins(SbtPlugin)
@@ -63,4 +61,35 @@ lazy val jacocoPlugin = (project in file("."))
6361
|""".stripMargin
6462
)
6563
)
64+
65+
scriptedLaunchOpts := {
66+
scriptedLaunchOpts.value ++
67+
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
68+
}
69+
70+
scriptedBufferLog := false
6671
})
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

scripted.sbt

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)