-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
57 lines (53 loc) · 1.92 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
ThisBuild / scalaVersion := "3.3.3"
// Make sure to update .github/workflows/ci.yml when updating this list
ThisBuild / crossScalaVersions := Seq("3.3.3", "2.13.14", "2.12.19")
ThisBuild / version := "1.0.6-SNAPSHOT"
ThisBuild / organization := "com.github.jkugiya"
ThisBuild / organizationName := "jkugiya"
lazy val root =
(
crossProject(JVMPlatform, JSPlatform, NativePlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Full)
.in(file("."))
)
.settings(
name := "ulid-scala",
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.2.19" % Test
)
lazy val benchmark = (project in file("benchmark"))
.enablePlugins(JmhPlugin)
.settings(
publish / skip := true,
libraryDependencies ++= Seq(
"de.huxhorn.sulky" % "de.huxhorn.sulky.ulid" % "8.2.0",
"io.azam.ulidj" % "ulidj" % "1.0.0"
)
)
.dependsOn(root.jvm)
// Uncomment the following for publishing to Sonatype.
// See https://www.scala-sbt.org/1.x/docs/Using-Sonatype.html for more detail.
ThisBuild / description := "A Scala port of alizain/ulid"
ThisBuild / licenses := List("MIT" -> new URI("https://github.com/jkugiya/ulid-scala/blob/master/LICENSE").toURL)
ThisBuild / homepage := Some(url("https://github.com/jkugiya/ulid-scala"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/jkugiya/ulid-scala"),
"scm:[email protected]:jkugiya/ulid-scala.git"
)
)
ThisBuild / developers := List(
Developer(
id = "jkugiya",
name = "Jiro kugiya",
email = "[email protected]",
url = url("https://github.com/jkugiya")
)
)
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / publishMavenStyle := true