-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
52 lines (45 loc) · 1.69 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
import sbt.Keys.libraryDependencies
import sbt.url
import xerial.sbt.Sonatype._
//noinspection SpellCheckingInspection
val CommonSettings = Seq(
organization := "jp.pois",
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
//noinspection SpellCheckingInspection
sonatypeProjectHosting := Some(GitHubHosting("pois0", "pg4scala", "[email protected]")),
homepage := Some(url("https://github.com/pois0/pg4scala")),
scmInfo := Some(
ScmInfo(
url("https://github.com/pois0/pg4scala"),
"scm:[email protected]:pois0/pg4scala.git"
),
),
developers := List(
Developer(id="pois", name="Shusuke Takahashi", email="[email protected]", url=url("https://github.com/pois0"))
),
scalaVersion := "2.13.10",
idePackagePrefix := Some("jp.pois.pg4scala"),
version := sys.env.getOrElse("PG4SCALA_VERSION", "1.0.0-SNAPSHOT")
)
usePgpKeyHex("523C25EDC9F5FAA76A29556261A9DF65B817C971")
lazy val Root = project.in(file("."))
.settings(CommonSettings)
.aggregate(Core, Benchmark)
lazy val Core = project.in(file("core"))
.settings(CommonSettings)
.settings(
name := "pg4scala-core",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.15" % Test,
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.5" % Compile,
libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.36" % Compile,
sonatypeCredentialHost := "s01.oss.sonatype.org",
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
publishTo := sonatypePublishToBundle.value,
)
lazy val Benchmark = project.in(file("bench"))
.dependsOn(Core)
.enablePlugins(JmhPlugin)
.settings(CommonSettings)
.settings(
name := "pg4scala-bench"
)