-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
123 lines (104 loc) · 4.1 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import java.io.File
import java.nio.file.{Files, Path, StandardCopyOption}
import scala.sys.process._
import xerial.sbt.Sonatype._
import scala.util.Try
val scala3Version = "3.0.2"
ThisBuild / versionScheme := Some("pvp")
publish / skip := true
val versionOfProject = "0.0.9"
lazy val genericCodecDependencies = Seq(
"org.typelevel" %% "cats-core" % "2.6.1"
)
lazy val CodecGeneric = (project in file("CodecGeneric"))
.settings(
organization := "io.github.sdrafahl",
name := "codecgeneric",
libraryDependencies ++= genericCodecDependencies,
scalaVersion := scala3Version,
version := versionOfProject,
credentials += Credentials("Sonatype Nexus Repository Manager", "s01.oss.sonatype.org", "sdrafahl", Try(scala.sys.env("SONATYPE_PASSWORD")).getOrElse("")),
credentials += Credentials(
"GnuPG Key ID",
"gpg",
"83CFB65722532521A286594CB8B3993C797D6D29", // key identifier
"ignored" // this field is ignored; passwords are supplied by pinentry
),
scmInfo := Some(
ScmInfo(
url("https://github.com/sdrafahl/Codec"),
"scm:git@github.com:sdrafahl/Codec.git"
)
),
developers := List(
Developer(
id = "sdrafahl",
name = "Shane Drafahl",
email = "shanedrafahl@gmail.com",
url = url("https://github.com/sdrafahl/Codec")
)
),
description := "Library for migrations" + "",
licenses := Seq("MIT" -> url("https://github.com/sdrafahl/Codec/blob/master/LICENSE")),
homepage := Some(url("https://github.com/sdrafahl/Codec")),
pomIncludeRepository := { _ => false },
publishMavenStyle := true,
sonatypeProjectHosting := Some(GitHubHosting("sdrafahl", "codec", "shanedrafahl@gmail.com")),
publishTo := {
val nexus = "https://s01.oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "service/local/staging/deploy/maven2")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
)
lazy val commonTestDependencies = Seq(
"org.scalameta" %% "munit-scalacheck" % "0.7.29" % Test,
"org.scalameta" %% "munit" % "0.7.29"
)
lazy val circeCodecConnectorDependencies = Seq(
"io.circe" %% "circe-core" % "0.14.1",
"io.circe" %% "circe-generic" % "0.14.1",
"io.circe" %% "circe-extras" % "0.14.1"
)
lazy val CirceCodecConnector = (project in file("CirceCodecConnector"))
.settings(
organization := "io.github.sdrafahl",
name := "circecodecconnector",
version := versionOfProject,
libraryDependencies ++= genericCodecDependencies,
libraryDependencies ++= circeCodecConnectorDependencies,
libraryDependencies ++= commonTestDependencies,
scalaVersion := scala3Version,
credentials += Credentials("Sonatype Nexus Repository Manager", "s01.oss.sonatype.org", "sdrafahl", Try(scala.sys.env("SONATYPE_PASSWORD")).getOrElse("")),
credentials += Credentials(
"GnuPG Key ID",
"gpg",
"83CFB65722532521A286594CB8B3993C797D6D29", // key identifier
"ignored" // this field is ignored; passwords are supplied by pinentry
),
scmInfo := Some(
ScmInfo(
url("https://github.com/sdrafahl/Codec"),
"scm:git@github.com:sdrafahl/Codec.git"
)
),
developers := List(
Developer(
id = "sdrafahl",
name = "Shane Drafahl",
email = "shanedrafahl@gmail.com",
url = url("https://github.com/sdrafahl/Codec")
)
),
description := "Library for migrations" + "",
licenses := Seq("MIT" -> url("https://github.com/sdrafahl/Codec/blob/master/LICENSE")),
homepage := Some(url("https://github.com/sdrafahl/Codec")),
pomIncludeRepository := { _ => false },
publishMavenStyle := true,
sonatypeProjectHosting := Some(GitHubHosting("sdrafahl", "codec", "shanedrafahl@gmail.com")),
publishTo := {
val nexus = "https://s01.oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "service/local/staging/deploy/maven2")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
)
.dependsOn(CodecGeneric)