-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
91 lines (80 loc) · 2.54 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
ThisBuild / organization := "com.colisweb"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalafmtOnCompile := true
ThisBuild / scalafmtCheck := true
ThisBuild / scalafmtSbtCheck := true
lazy val projectName = "JRubyConcurrentConstantMemoryExcel"
lazy val testKitLibs = Seq(
"org.scalacheck" %% "scalacheck" % "1.14.0",
"org.scalactic" %% "scalactic" % "3.0.7",
"org.scalatest" %% "scalatest" % "3.0.7",
).map(_ % Test)
lazy val poi =
((version: String) =>
Seq(
"org.apache.poi" % "poi" % version,
"org.apache.poi" % "poi-ooxml" % version
))("4.1.0")
lazy val monix =
((version: String) =>
Seq(
"io.monix" %% "monix-execution" % version,
"io.monix" %% "monix-eval" % version,
))("3.0.0-RC2")
lazy val root =
Project(id = projectName, base = file("."))
.settings(moduleName := "root")
.settings(noPublishSettings: _*)
.aggregate(core)
.dependsOn(core)
lazy val core =
project
.settings(moduleName := projectName)
.settings(
libraryDependencies ++= Seq(
"com.nrinaudo" %% "kantan.csv" % "0.5.0",
"com.github.pathikrit" %% "better-files" % "3.7.1",
) ++ monix ++ poi ++ testKitLibs)
/**
* Copied from Cats
*/
lazy val noPublishSettings = Seq(
publish := {},
publishLocal := {},
publishArtifact := false
)
inThisBuild(
List(
credentials += Credentials(Path.userHome / ".bintray" / ".credentials"),
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT")),
homepage := Some(url("https://github.com/colisweb/JRubyConcurrentConstantMemoryExcel")),
bintrayOrganization := Some("colisweb"),
bintrayReleaseOnPublish := true,
publishMavenStyle := true,
pomExtra := (
<scm>
<url>git@github.com:colisweb/JRubyConcurrentConstantMemoryExcel.git</url>
<connection>scm:git:git@github.com:colisweb/JRubyConcurrentConstantMemoryExcel.git</connection>
</scm>
<developers>
<developer>
<id>guizmaii</id>
<name>Jules Ivanic</name>
</developer>
</developers>
)
)
)
//// Aliases
/**
* Copied from kantan.csv
*/
addCommandAlias("runBenchs", "benchmarks/jmh:run -i 10 -wi 10 -f 2 -t 1")
/**
* Example of JMH tasks that generate flamegraphs.
*
* http://malaw.ski/2017/12/10/automatic-flamegraph-generation-from-jmh-benchmarks-using-sbt-jmh-extras-plain-java-too/
*/
addCommandAlias(
"flame93",
"benchmarks/jmh:run -f1 -wi 10 -i 20 PackerBenchmarkWithRealData -prof jmh.extras.Async:flameGraphOpts=--minwidth,2;verbose=true")