forked from conorclifford/gfc-time
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
67 lines (52 loc) · 1.63 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
name := "gfc-time"
organization := "org.gfccollective"
scalaVersion := "2.12.17"
crossScalaVersions := Seq(scalaVersion.value, "2.13.10", "3.2.1")
scalacOptions += "-target:jvm-1.8"
scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) =>
Seq("-source:3.0-migration", "-explain", "-explain-types")
case _ =>
Nil
}
}
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.14" % Test
)
publishMavenStyle := true
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")
}
Test / publishArtifact := false
pomIncludeRepository := { _ => false }
licenses := Seq("Apache-style" -> url("https://raw.githubusercontent.com/gfc-collective/gfc-time/main/LICENSE"))
homepage := Some(url("https://github.com/gfc-collective/gfc-time"))
pomExtra := (
<scm>
<url>https://github.com/gfc-collective/gfc-time</url>
<connection>scm:git:[email protected]/gfc-collective/gfc-time.git</connection>
</scm>
<developers>
<developer>
<id>gheine</id>
<name>Gregor Heine</name>
<url>https://github.com/gheine</url>
</developer>
<developer>
<id>ebowman</id>
<name>Eric Bowman</name>
<url>https://github.com/ebowman</url>
</developer>
<developer>
<id>andreyk0</id>
<name>Andrey Kartashov</name>
<url>https://github.com/andreyk0</url>
</developer>
</developers>
)