-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sbt
63 lines (53 loc) · 2.05 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
import scala.collection.JavaConverters._
ThisBuild / scalaVersion := "2.12.18"
sbtPlugin := true
crossSbtVersions := List("1.4.9")
organization := "com.lightbend.paradox"
name := "sbt-paradox-apidoc"
addSbtPlugin(Library.sbtParadox)
libraryDependencies ++= Seq(
Library.classgraph,
Library.scalatest % Test,
Library.paradoxTestkit % Test
)
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0"))
homepage := Some(url("https://github.com/lightbend/sbt-paradox-apidoc"))
scmInfo := Some(
ScmInfo(url("https://github.com/lightbend/sbt-paradox-apidoc"), "[email protected]:lightbend/sbt-paradox-apidoc.git")
)
developers += Developer(
"contributors",
"Contributors",
"https://gitter.im/lightbend/paradox",
url("https://github.com/lightbend/sbt-paradox-apidoc/graphs/contributors")
)
organizationName := "Lightbend Inc."
organizationHomepage := Some(url("https://lightbend.com"))
startYear := Some(2018)
enablePlugins(AutomateHeaderPlugin)
enablePlugins(SbtPlugin)
scriptedLaunchOpts += ("-Dproject.version=" + version.value)
scriptedLaunchOpts ++= java.lang.management.ManagementFactory.getRuntimeMXBean.getInputArguments.asScala.filter(a =>
Seq("-Xmx", "-Xms", "-XX", "-Dfile").exists(a.startsWith)
)
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublishTargetBranches :=
Seq(RefPredicate.StartsWith(Ref.Tag("v")))
ThisBuild / githubWorkflowPublish := Seq(
WorkflowStep.Sbt(
List("ci-release"),
env = Map(
"PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}",
"PGP_SECRET" -> "${{ secrets.PGP_SECRET }}",
"SONATYPE_PASSWORD" -> "${{ secrets.SONATYPE_PASSWORD }}",
"SONATYPE_USERNAME" -> "${{ secrets.SONATYPE_USERNAME }}"
)
)
)
ThisBuild / publishTo := sonatypePublishTo.value
sonatypeProfileName := "com.lightbend"
ThisBuild / githubWorkflowJavaVersions := List(
JavaSpec.temurin("11")
)
ThisBuild / githubWorkflowTargetBranches := Seq("main")
ThisBuild / githubWorkflowBuild := Seq(WorkflowStep.Sbt(List("test", "scripted")))