This repository has been archived by the owner on Jun 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
/
build.sbt
83 lines (76 loc) · 2.26 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
name := "vscode-scala"
scalaVersion in ThisBuild := "2.12.3"
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
lazy val commonSettings = Seq(
organization := "com.github.dragos",
resolvers += "dhpcs at bintray" at "https://dl.bintray.com/dhpcs/maven",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.1" % "test"
),
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")
}
)
lazy val languageserver = project.
settings(commonSettings).
settings(
libraryDependencies ++= Seq(
"com.dhpcs" %% "scala-json-rpc" % "2.0.1",
"com.typesafe.scala-logging" %% "scala-logging" % "3.7.2",
"org.slf4j" % "slf4j-api" % "1.7.21",
"ch.qos.logback" % "logback-classic" % "1.1.7",
"org.codehaus.groovy" % "groovy" % "2.4.0"
),
pomExtra := {
<url>https://github.com/dragos/dragos-vscode-scala/</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<id>dragos</id>
<name>Iulian Dragos</name>
<url>https://github.com/dragos/</url>
</developer>
</developers>
}
)
lazy val `ensime-lsp` = project.
in(file("ensime-lsp")).
dependsOn(languageserver).
settings(commonSettings).
settings(
resolvers += Resolver.sonatypeRepo("snapshots"),
libraryDependencies ++= Seq(
"org.ensime" %% "core" % "2.0.1"
),
pomExtra := {
<url>https://github.com/dragos/dragos-vscode-scala/</url>
<licenses>
<license>
<name>GPL3</name>
<url>https://www.gnu.org/licenses/gpl-3.0.en.html</url>
</license>
</licenses>
<developers>
<developer>
<id>dragos</id>
<name>Iulian Dragos</name>
<url>https://github.com/dragos/</url>
</developer>
</developers>
}
)
lazy val vscodeRoot = project
.in(file("."))
.settings(publishArtifact := false)
.aggregate(languageserver, `ensime-lsp`)