-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
35 lines (26 loc) · 920 Bytes
/
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
ThisBuild / name := "scala-graphql"
resolvers += ("Nexus" at Dependencies.nexus + "/maven-public").withAllowInsecureProtocol(true)
lazy val commonSettings = Seq(
organization := "com.github.jacobbishopxy",
scalaVersion := Dependencies.Versions.scalaV,
Dependencies.deps
)
lazy val rootConfig = Seq(
version := "0.2.0"
)
lazy val root = Project(id = "scala-graphql", base = file("."))
.enablePlugins(PackPlugin)
.settings(commonSettings, rootConfig)
Revolver.settings
enablePlugins(JavaAppPackaging)
enablePlugins(PackPlugin)
packGenerateWindowsBatFile := false
packJvmOpts := Map("scala-ei-graphql" -> Seq("-Xms8g", "-Xmx8g", "-J-Xss8M"))
publishTo := {
val nexus = Dependencies.nexus
if (isSnapshot.value)
Some("snapshots" at nexus + "/maven-snapshots/")
else
Some("releases" at nexus + "/maven-releases/")
}
credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credential")