-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
65 lines (54 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
64
65
ThisBuild / scalaVersion := "2.12.18"
sbtPlugin := true
enablePlugins(SbtPlugin)
import scala.collection.JavaConverters._
scriptedLaunchOpts += ("-Dproject.version=" + version.value)
scriptedLaunchOpts ++= java.lang.management.ManagementFactory.getRuntimeMXBean.getInputArguments.asScala.filter(a =>
Seq("-Xmx", "-Xms", "-XX", "-Dfile").exists(a.startsWith)
)
crossSbtVersions := List("1.4.9")
organization := "com.lightbend.paradox"
name := "sbt-paradox-project-info"
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.10.6")
libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.4.2",
"org.scalatest" %% "scalatest" % "3.2.9" % Test // ApacheV2
)
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
homepage := Some(url("https://github.com/lightbend/sbt-paradox-project-info"))
scmInfo := Some(
ScmInfo(
url("https://github.com/lightbend/sbt-paradox-project-info"),
"git@github.com:lightbend/sbt-paradox-project-info.git"
)
)
developers += Developer(
"contributors",
"Contributors",
"https://gitter.im/lightbend/paradox",
url("https://github.com/lightbend/sbt-paradox-project-info/graphs/contributors")
)
organizationName := "Lightbend Inc."
startYear := Some(2018)
enablePlugins(AutomateHeaderPlugin)
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 }}"
)
)
)
sonatypeProfileName := "com.lightbend"
ThisBuild / githubWorkflowJavaVersions := List(
JavaSpec.temurin("11"),
JavaSpec.temurin("17")
)
ThisBuild / githubWorkflowTargetBranches := Seq("main")
ThisBuild / githubWorkflowBuild := Seq(WorkflowStep.Sbt(List("test", "scripted")))