forked from t2v/stackable-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
89 lines (80 loc) · 2.81 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
import play.routes.compiler.InjectedRoutesGenerator
import play.sbt.routes.RoutesKeys.routesGenerator
import sbt.Keys._
import sbt._
lazy val _organization = "jp.t2v"
lazy val _version = "0.7.0-SNAPSHOT"
lazy val _resolvers = Seq(
"scalaz-bintray" at "https://dl.bintray.com/scalaz/releases",
"sonatype releases" at "http://oss.sonatype.org/content/repositories/releases"
)
lazy val _scalacOptions = Seq("-unchecked")
lazy val _pomExtra = {
<url>https://github.com/t2v/stackable-controller</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:t2v/stackable-controller</url>
<connection>scm:git:git@github.com:t2v/stackable-controller</connection>
</scm>
<developers>
<developer>
<id>gakuzzzz</id>
<name>gakuzzzz</name>
<url>https://github.com/gakuzzzz</url>
</developer>
</developers>
}
val Scala211 = "2.11.12"
val Scala212 = "2.12.8"
lazy val core = Project(
id = "core",
base = file("core")
).settings(
organization := _organization,
name := "stackable-controller",
version := _version,
scalaVersion := Scala211,
crossScalaVersions := Seq(Scala211, Scala212),
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")
},
publishMavenStyle := true,
resolvers ++= _resolvers,
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play" % play.core.PlayVersion.current % "provided"
),
sbtPlugin := false,
scalacOptions ++= _scalacOptions,
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { x => false },
pomExtra := _pomExtra
)
lazy val sample = Project("sample", file("sample")).enablePlugins(play.sbt.PlayScala).settings(
version := _version,
scalaVersion := Scala211,
crossScalaVersions := Seq(Scala211, Scala212),
resolvers ++= _resolvers,
routesGenerator := InjectedRoutesGenerator,
libraryDependencies ++= Seq(
play.sbt.Play.autoImport.jdbc,
play.sbt.Play.autoImport.guice,
play.sbt.Play.autoImport.specs2 % "test",
"com.typesafe.play" %% "play" % play.core.PlayVersion.current,
"org.scalikejdbc" %% "scalikejdbc" % "3.0.0",
"org.scalikejdbc" %% "scalikejdbc-config" % "3.0.0",
"org.scalikejdbc" %% "scalikejdbc-play-initializer" % "2.6.0",
"org.slf4j" % "slf4j-simple" % "[1.7,)"
)
) dependsOn(core)
lazy val root = Project(id = "root", base = file(".")).settings(
scalaVersion := Scala211
).aggregate(core, sample)