This repository has been archived by the owner on Jul 23, 2022. It is now read-only.
forked from gerbrand/swagger-akka-http-with-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
85 lines (67 loc) · 2.63 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import sbt.Keys.libraryDependencies
import sbtghactions.JavaSpec.Distribution.Zulu
organization := "com.github.swagger-akka-http"
name := "swagger-akka-http-with-ui"
val akkaVersion = "2.6.19"
val akkaHttpVersion = "10.2.9"
val jacksonVersion = "2.13.3"
val swaggerVersion = "2.2.0"
val scala213 = "2.13.8"
val slf4jVersion = "1.7.36"
ThisBuild / scalaVersion := scala213
ThisBuild / crossScalaVersions := Seq(scala213, "2.12.15")
update / checksums := Nil
lazy val root = (project in file("."))
.settings(
libraryDependencies ++= Seq("com.github.swagger-akka-http" %% "swagger-akka-http" % "2.7.0",
"org.webjars" % "webjars-locator" % "0.45",
"org.webjars" % "swagger-ui" % "4.6.2",
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion % Test,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % Test,
"org.scalatest" %% "scalatest" % "3.2.11" % Test,
"org.json4s" %% "json4s-native" % "4.0.5" % Test,
"org.jsoup" % "jsoup" % "1.14.3" % Test,
"jakarta.ws.rs" % "jakarta.ws.rs-api" % "3.0.0" % Test,
"joda-time" % "joda-time" % "2.10.14" % Test,
"org.joda" % "joda-convert" % "2.2.2" % Test,
"org.slf4j" % "slf4j-simple" % slf4jVersion % Test
),
)
Test / testOptions += Tests.Argument("-oD")
Test / publishArtifact := false
Test / parallelExecution := false
pomIncludeRepository := { _ => false }
homepage := Some(url("https://github.com/swagger-akka-http/swagger-akka-http-with-ui"))
licenses := Seq("The Apache Software License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
pomExtra := (
<developers>
<developer>
<id>gerbrand</id>
<name>Gerbrand van Dieijen</name>
<url>https://software-creation.nl</url>
</developer>
<developer>
<id>pjfanning</id>
<name>PJ Fanning</name>
<url>https://github.com/pjfanning</url>
</developer>
</developers>)
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec(Zulu, "8"), JavaSpec(Zulu, "11"))
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublishTargetBranches := Seq(
RefPredicate.Equals(Ref.Branch("main")),
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 }}",
"CI_SNAPSHOT_RELEASE" -> "+publishSigned"
)
)
)