-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
75 lines (73 loc) · 2.43 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
import sbt._
val scalaconfig = project
.in(file("."))
.settings(
organization := "com.github.andr83",
name := "scalaconfig",
version := "0.8-SNAPSHOT",
scalaVersion := "2.13.3",
scalacOptions += "-Xlog-implicits",
crossScalaVersions := Seq("2.11.12", "2.12.12", "2.13.3"),
isSnapshot := version.value.endsWith("-SNAPSHOT"),
scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8"),
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
),
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")
},
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")
},
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
libraryDependencies ++= Seq(
Library.typesafeConfig % "provided",
Library.scalaCollectionCompat,
Library.scalaTest % "test",
Library.shapeless
),
Compile / scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n >= 13 => "-Ymacro-annotations" :: Nil
case _ => Nil
}
},
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n >= 13 => Nil
case _ => compilerPlugin(Library.scalaMacrosParadise cross CrossVersion.full) :: Nil
}
},
pomExtra := {
<url>https://github.com/andr83/scalaconfig</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>
<scm>
<connection>scm:git:github.com/andr83/scalaconfig</connection>
<developerConnection>scm:git:git@github.com/andr83/scalaconfig</developerConnection>
<url>github.com/andr83/scalaconfig</url>
</scm>
<developers>
<developer>
<id>andr83</id>
<name>Andrei Tupitcyn</name>
<email>andrew.tupitsin@gmail.com</email>
</developer>
</developers>
}
)