-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
78 lines (60 loc) · 2.35 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
// Settings file for all the modules.
import xml.Group
import sbt._
import Keys._
import sbtghactions.JavaSpec.Distribution.Zulu
organization := "com.github.swagger-akka-http"
ThisBuild / scalaVersion := "2.13.16"
ThisBuild / crossScalaVersions := Seq("2.12.20", "2.13.16", "3.3.5")
ThisBuild / organizationHomepage := Some(url("https://github.com/swagger-akka-http/swagger-enumeratum-module"))
ThisBuild / scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked")
Test / publishArtifact := false
pomIncludeRepository := { x => false }
//resolvers ++= Resolver.sonatypeOssRepos("snapshots")
libraryDependencies ++= Seq(
"io.swagger.core.v3" % "swagger-core-jakarta" % "2.2.28",
"com.github.swagger-akka-http" %% "swagger-scala-module" % "2.13.0",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.18.2",
"com.beachape" %% "enumeratum" % "1.7.5",
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"org.slf4j" % "slf4j-simple" % "2.0.16" % Test
)
homepage := Some(new URL("https://github.com/swagger-akka-http/swagger-enumeratum-module"))
Test / parallelExecution := false
startYear := Some(2020)
licenses := Seq(("Apache License 2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.html")))
releasePublishArtifactsAction := PgpKeys.publishSigned.value
pomExtra := {
pomExtra.value ++ Group(
<issueManagement>
<system>github</system>
<url>https://github.com/swagger-akka-http/swagger-enumeratum-module/issues</url>
</issueManagement>
<developers>
<developer>
<id>pjfanning</id>
<name>PJ Fanning</name>
<url>https://github.com/pjfanning</url>
</developer>
</developers>
)
}
MetaInfLicenseCopy.settings
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec(Zulu, "8"))
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"
)
)
)