forked from kontainers/PureCSV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
59 lines (56 loc) · 1.79 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
import sbt.Keys._
lazy val buildSettings = Seq(
organization := "io.kontainers",
scalaVersion := "2.12.9",
crossScalaVersions := Seq("2.11.12", "2.13.0", scalaVersion.value)
)
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishArtifact in Test := false,
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging),
pomIncludeRepository := { x => false },
pomExtra := (
<url>https://github.com/kontainers/PureCSV</url>
<licenses>
<license>
<name>Apache2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:kontainers/PureCSV.git</url>
<connection>scm:git:[email protected]:kontainers/PureCSV.git</connection>
</scm>
<developers>
<developer>
<id>melrief</id>
<name>Mario Pastorelli</name>
</developer>
</developers>
)
)
lazy val pureCSV = project.in(file(".")).
settings(buildSettings).
settings(publishSettings).
settings(
name := "purecsv",
javacOptions ++= Seq("-source", "1.8", "-target", "1.8"),
scalacOptions ++= Seq("-feature", "-deprecation"),
libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.3.3",
//compilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
"org.scalatest" %% "scalatest" % "3.0.8" % Test,
"com.github.tototoshi" %% "scala-csv" % "1.3.6",
"org.scala-lang" % "scala-reflect" % scalaVersion.value
),
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
)