-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
102 lines (83 loc) · 2.72 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
92
93
94
95
96
97
98
99
100
101
102
version := "0.13.1"
name := "rxsocket"
organization := "com.scalachan"
scalaVersion := "2.12.6"
crossScalaVersions := Seq("2.12.6", "2.11.12")
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-language:postfixOps",
"-language:implicitConversions",
"-language:higherKinds",
)
resolvers ++= Seq(
"main" at "http://repo1.maven.org/maven2",
"Sonatype Nexus" at "https://oss.sonatype.org/content/repositories/snapshots"
)
parallelExecution in Test := false
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")
}
libraryDependencies ++= Seq(
"io.monix" %% "monix" % "3.0.0-RC1",
"org.json4s" %% "json4s-native" % "3.6.0-M3",
"org.slf4j" % "slf4j-api" % "1.7.25",
"ch.qos.logback" % "logback-classic" % "1.2.3" % Test,
"junit" % "junit" % "4.12" % Test,
)
lazy val commonPublishSettings = Seq (
pgpSecretRing := file(Path.userHome + "/.sbt/gpg/secring.asc"),
pgpPublicRing := file(Path.userHome + "/.sbt/gpg/pubring.asc"),
publishArtifact in (Compile, packageDoc) := true,
publishArtifact in Test := false,
publishMavenStyle := true,
credentials += Credentials(Path.userHome / ".ivy2" / ".new_card"),
publishArtifact in (Compile, packageDoc) := true,
publishArtifact in Test := false,
sonatypeProfileName := "com.scalachan",
)
lazy val example = (project in file("example"))
.settings(
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.3" % Test,
)
)
.dependsOn(root)
lazy val task = project in file("task")
lazy val root = (project in file(".")).
settings(commonPublishSettings).
settings(
resolvers ++= Seq(
"main" at "http://repo1.maven.org/maven2",
"Sonatype Nexus" at "https://oss.sonatype.org/content/repositories/snapshots"
),
publishArtifact in (Compile, packageDoc) := true,
publishArtifact in Test := false
).
settings(
pomExtra in Global :=
<url>https://github.com/LoranceChen/RxSocket</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<scm>
<url>[email protected]/LoranceChen/RxSocket.git</url>
<connection>scm:git:[email protected]/LoranceChen/RxSocket.git</connection>
</scm>
<developers>
<developer>
<id>lorancechen</id>
<name>UnlimitedCode Inc.</name>
<url>http://www.scalachan.com/</url>
</developer>
</developers>
)
fork := true
updateOptions := updateOptions.value.withCachedResolution(true)