-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
78 lines (72 loc) · 2.49 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
crossScalaVersions in ThisBuild := Seq("2.11.12", "2.12.4")
scalaVersion in ThisBuild := "2.12.4"
lazy val root = project.in(file("."))
.aggregate(js, jvm)
.settings(skip in publish := true)
val nexus = "https://oss.sonatype.org/"
val groupId = "com.github.thangiee"
lazy val shared = crossProject.in(file("."))
.settings(
name := "freasy-monad",
version := "0.7.0",
organization := groupId,
scalacOptions ++= Seq(
"-feature",
"-encoding", "UTF-8",
"-unchecked",
"-deprecation",
"-Xfuture",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-unchecked",
"-Xplugin-require:macroparadise"
),
resolvers += Resolver.bintrayIvyRepo("scalameta", "maven"),
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-free" % "1.1.0" % "provided",
"org.scalaz" %% "scalaz-core" % "7.2.22" % "provided",
"org.scalatest" %% "scalatest" % "3.0.0" % "test",
"org.scalameta" %% "scalameta" % "1.8.0",
"org.scalameta" %% "contrib" % "1.8.0"
),
addCompilerPlugin("org.scalameta" % "paradise" % "3.0.0-M11" cross CrossVersion.full),
publishSettings
)
.jvmSettings()
.jsSettings()
lazy val jvm = shared.jvm
lazy val js = shared.js
lazy val publishSettings = Seq(
// temporary workaround for https://github.com/scalameta/paradise/issues/55
sources in (Compile, doc) := Nil, // macroparadise doesn't work with scaladoc yet.
sonatypeProfileName := groupId,
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")
},
publishArtifact in Test := false,
pomExtra :=
<url>https://github.com/Thangiee/Freasy-Monad</url>
<licenses>
<license>
<name>MIT license</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>
<scm>
<url>git://github.com/Thangiee/Freasy-Monad.git</url>
<connection>scm:git://github.com/Thangiee/Freasy-Monad.git</connection>
</scm>
<developers>
<developer>
<id>Thangiee</id>
<name>Thang Le</name>
<url>https://github.com/Thangiee</url>
</developer>
</developers>
)
addCommandAlias("publishFreasyMonad", "publishSigned")
addCommandAlias("releaseFreasyMonad", s"sonatypeReleaseAll $groupId")