This repository has been archived by the owner on Apr 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
59 lines (54 loc) · 2.15 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
inThisBuild(List(
organization := "com.dwolla.sbt",
description := "SBT plugin to deploy projects using CloudFormation",
sbtPlugin := true,
startYear := Option(2016),
homepage := Some(url("https://github.com/Dwolla/sbt-cloudformation-stack")),
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
developers := List(
Developer(
"bpholt",
"Brian Holt",
url("https://dwolla.com")
)
),
githubWorkflowJavaVersions := Seq("[email protected]", "[email protected]"),
githubWorkflowTargetTags ++= Seq("v*"),
githubWorkflowPublishTargetBranches :=
Seq(RefPredicate.StartsWith(Ref.Tag("v"))),
githubWorkflowBuild := Seq(WorkflowStep.Sbt(List("test", "scripted"), name = Some("Build and test project"))),
githubWorkflowPublish := Seq(WorkflowStep.Sbt(List("ci-release"))),
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 }}"
)
)
),
))
lazy val pipeline = InputKey[Unit]("pipeline", "Runs the full build pipeline: compile, test, integration tests")
pipeline := scripted.dependsOn(Test / test).evaluated
scriptedLaunchOpts ++= Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
// uncomment to see sbt output for each scripted test run
//scriptedBufferLog := false
val `sbt-cloudformation-stack` = (project in file("."))
.settings(
sonatypeProfileName := "com.dwolla",
libraryDependencies ++= {
val awsSdkVersion = "1.11.996"
val specs2Version = "4.10.6"
Seq(
"com.amazonaws" % "aws-java-sdk-cloudformation" % awsSdkVersion,
"com.dwolla" %% "fs2-aws" % "2.0.0-M11",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"org.specs2" %% "specs2-core" % specs2Version % Test,
"org.specs2" %% "specs2-mock" % specs2Version % Test
)
},
)
.enablePlugins(SbtPlugin)