-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathbuild.sbt
67 lines (58 loc) · 1.95 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
ThisBuild / version := {
val orig = (ThisBuild / version).value
if (orig.endsWith("-SNAPSHOT")) "-SNAPSHOT"
else orig
}
ThisBuild / organization := "com.github.sbt"
ThisBuild / description := "An implementation of sbt's test interface for JUnit 4"
ThisBuild / dynverSonatypeSnapshots := true
lazy val `junit-interface` = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(nocomma {
name := "junit-interface"
autoScalaLibrary := false
crossPaths := false
sbtPlugin := false
libraryDependencies ++= Seq(
"junit" % "junit" % "4.13.2",
"org.scala-sbt" % "test-interface" % "1.0",
)
Compile / javacOptions ++= List("-target", "1.8", "-source", "1.8")
// javadoc: error - invalid flag: -target.
Compile / doc / javacOptions --= List("-target", "1.8")
Test / publishArtifact := false
scriptedBufferLog := false
scriptedLaunchOpts ++= Seq(
s"-Dplugin.version=${version.value}",
"-Xmx256m"
)
publishMavenStyle := true
pomIncludeRepository := { _ => false }
})
ThisBuild / publishTo := Some(
if(version.value.trim.endsWith("SNAPSHOT")) "snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
else "releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"
)
ThisBuild / homepage := Some(url("http://github.com/sbt/junit-interface/"))
ThisBuild / startYear := Some(2009)
ThisBuild / licenses += ("Two-clause BSD-style license", url("http://github.com/sbt/junit-interface/blob/master/LICENSE.txt"))
ThisBuild / developers := List(
Developer(
id = "szeiger",
name = "Stefan Zeiger",
email = "szeiger@novocode.com",
url = url("http://szeiger.de")
),
Developer(
id = "eed3si9n",
name = "Eugene Yokota",
email = "@eed3si9n",
url = url("https://eed3si9n.com/")
),
)
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/sbt/junit-interface"),
"scm:git@github.com:sbt/junit-interface.git"
)
)