forked from mashupbots/socko
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
67 lines (54 loc) · 1.7 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
//
// Socko Web Server build file
//
// import sbt.Project.Initialize
// import sbtassembly.Plugin._
// import AssemblyKeys._
//
// Build setup
//
//
// Settings
//
val shared = Seq(
// Info
organization := "com.github.asana.socko-asana-fork",
version := "0.8.0",
crossScalaVersions := Seq("2.12.17", "2.13.10"),
// Repositories
resolvers += "Typesafe Repository" at "https://repo.typesafe.com/typesafe/releases/",
resolvers += "Asana Maven" at "s3://asana-oss-cache/maven/release",
credentials += Credentials(Path.userHome / ".sbt" / ".credentials"),
Test / fork := true,
)
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
)
// Compile settings
lazy val compileJdkSettings = Seq(
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked", "-opt:l:inline", "-opt-inline-from:**", "-feature", "-language:postfixOps"),
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation")
)
//
// Projects
//
lazy val root = (project in file("."))
.settings(shared ++ compileJdkSettings ++ Seq(
publish / skip := true
)
).aggregate(webserver)
lazy val webserver = (project in file("socko-webserver"))
.settings(
shared ++ compileJdkSettings ++ Seq(
libraryDependencies ++= Dependencies.webserver ++ Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
),
licenses := List(
("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0"))
),
homepage := Some(url("https://github.com/Asana/socko-asana-fork")),
publishMavenStyle := true,
publishTo := Some("Asana Maven" at "s3://asana-oss-cache/maven/release"),
Test / publishArtifact := false,
)
)