-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
46 lines (41 loc) · 1.16 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
inThisBuild(List(
organization := "io.get-coursier",
homepage := Some(url("https://github.com/coursier/sbt-cs-publish")),
licenses := Seq("Apache 2.0" -> url("http://opensource.org/licenses/Apache-2.0")),
developers := List(
Developer(
"alexarchambault",
"Alexandre Archambault",
"",
url("https://github.com/alexarchambault")
)
)
))
val scala212 = "2.13.8"
val sbt10Version = "1.0.2"
lazy val shared = Seq(
scalaVersion := scala212
)
lazy val `sbt-cs-publish` = project
.enablePlugins(ScriptedPlugin)
.settings(
shared,
// https://github.com/sbt/sbt/issues/5049#issuecomment-528960415
dependencyOverrides := "org.scala-sbt" % "sbt" % "1.2.8" :: Nil,
scriptedLaunchOpts ++= Seq(
"-Xmx1024M",
"-Dplugin.name=" + name.value,
"-Dplugin.version=" + version.value,
"-Dsbttest.base=" + (sourceDirectory.value / "sbt-test").getAbsolutePath
),
scriptedBufferLog := false,
sbtPlugin := true,
(pluginCrossBuild / sbtVersion) := sbt10Version
)
lazy val `sbt-cs-publish-root` = project
.in(file("."))
.aggregate(`sbt-cs-publish`)
.settings(
shared,
(publish / skip) := true
)