-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.sbt
60 lines (47 loc) · 1.67 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
lazy val sharedSettings = Seq(
organization := "com.github.benhutchison",
version := "1.1.16",
scalaVersion := "2.13.2",
name := "prickle",
libraryDependencies ++= Seq(
"com.github.benhutchison" %%% "microjson" % "1.6",
"org.scala-lang" % "scala-reflect" % scalaVersion.value % "compile",
"com.lihaoyi" %%% "utest" % "0.7.4" % "test"
),
publishArtifact in Test := false,
testFrameworks += new TestFramework("utest.runner.Framework"),
scalacOptions ++= Seq("-deprecation"),
pomExtra :=
<url>https://github.com/benhutchison/prickle</url>
<licenses>
<license>
<name>Apache license</name>
<url>http://opensource.org/licenses/Apache-2.0</url>
</license>
</licenses>
<scm>
<url>git://github.com/benhutchison/prickle.git</url>
</scm>
<developers>
<developer>
<id>benhutchison</id>
<name>Ben Hutchison</name>
<url>https://github.com/benhutchison</url>
</developer>
</developers>
)
lazy val cross = crossProject(JSPlatform, JVMPlatform).in(file(".")).settings(sharedSettings: _*)
lazy val root = project.in(file(".")).aggregate(js, jvm).
settings(
publishArtifact := false,
crossScalaVersions := Seq("2.13.2"),
sonatypeProfileName := "com.github.benhutchison"
)
ThisBuild / publishTo := Some(Opts.resolver.sonatypeStaging)
ThisBuild / isSnapshot := true
lazy val js = cross.js
lazy val jvm = cross.jvm
lazy val example = Project(
id = "example",
base = file("example")
).settings(scalaVersion := "2.13.2").aggregate(jvm).dependsOn(jvm)