forked from pjfanning/jackson-scala-reflect-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
54 lines (42 loc) · 1.95 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
import org.typelevel.sbt.gha.JavaSpec.Distribution.Zulu
name := "jackson-scala-reflect-extensions"
organization := "com.github.pjfanning"
description := "Extension to jackson-module-scala that uses scala-reflect to get type info"
ThisBuild / scalaVersion := "2.13.8"
ThisBuild / crossScalaVersions := Seq("2.11.12", "2.12.15", "2.13.8")
val jacksonVersion = "2.13.4"
val scalaReflectionVersion = "1.1.4"
//resolvers ++= Resolver.sonatypeOssRepos("snapshots")
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion,
"com.fasterxml.jackson.module" %% "jackson-module-scala" % jacksonVersion,
"org.slf4j" % "slf4j-api" % "1.7.36",
"org.scalatest" %% "scalatest" % "3.2.13" % Test,
"org.slf4j" % "slf4j-simple" % "1.7.36" % Test,
"com.fasterxml.jackson.dataformat" % "jackson-dataformat-csv" % jacksonVersion % Test
)
homepage := Some(url("https://github.com/pjfanning/jackson-scala-reflect-extensions"))
licenses := Seq("APL2" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt"))
developers := List(
Developer(id="pjfanning", name="PJ Fanning", email="", url=url("https://github.com/pjfanning"))
)
Test / parallelExecution := false
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec(Zulu, "8"))
ThisBuild / githubWorkflowBuild := Seq(WorkflowStep.Sbt(List("test")))
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"
)
)
)