-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
61 lines (58 loc) · 2.07 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
import com.typesafe.tools.mima.core.*
lazy val user = "agboom"
lazy val repo = "sbt-steps"
inThisBuild(Seq(
organization := "io.github.agboom",
homepage := Some(url(s"https://github.com/$user/$repo")),
licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"),
),
scmInfo := Some(ScmInfo(url(s"https://github.com/$user/$repo"), s"scm:[email protected]:$user/$repo.git")),
developers := List(
Developer(
"agboom",
"Adriaan Groenenboom",
url("https://agboom.github.io"),
),
),
console / initialCommands := """import sbtsteps._""",
// set up sbt-scripted for testing sbt plugins
scriptedLaunchOpts ++= Seq(
"-Xmx1024M",
s"-Dplugin.version=${(ThisProject / version).value}",
"-Dsbt.color=true",
),
scriptedBufferLog := false,
versionScheme := Some(VersionScheme.SemVerSpec),
scalacOptions := Settings.compilerOptions,
versionPolicyIgnoredInternalDependencyVersions := Some("^\\d+\\.\\d+\\.\\d+\\+\\d+".r),
))
lazy val sbtSteps = project.in(file("."))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-steps",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % Test,
scriptedDependencies := Seq(
sbtTestkit / publishLocal,
publishLocal,
).dependOn.value,
// internal package does not have compatibility guarantees, so we exclude it
mimaBinaryIssueFilters += ProblemFilters.exclude[Problem]("sbtsteps.internal.*"),
// https://github.com/sbt/sbt-pgp/issues/170
pgpSigningKey := Credentials
.forHost(credentials.value, organization.value)
.map(_.userName),
// https://github.com/xerial/sbt-sonatype#sonatype-central-host
publishTo := sonatypePublishToBundle.value,
sbtPluginPublishLegacyMavenStyle := false,
sonatypeCredentialHost := xerial.sbt.Sonatype.sonatypeCentralHost,
)
lazy val sbtTestkit = project.in(file("testkit"))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-testkit",
// only used internally for scripted plugins
publish / skip := true,
publishLocal / skip := false,
)