Skip to content

Commit 5278c7d

Browse files
committed
sbt 0.13.15. migrate to build.sbt
1 parent 13692c4 commit 5278c7d

File tree

3 files changed

+83
-93
lines changed

3 files changed

+83
-93
lines changed

build.sbt

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
lazy val _organization = "jp.t2v"
2+
lazy val _version = "0.6.0-SNAPSHOT"
3+
4+
def _publishTo(v: String) = {
5+
val nexus = "https://oss.sonatype.org/"
6+
if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
7+
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
8+
}
9+
10+
lazy val _resolvers = Seq(
11+
"scalaz-bintray" at "https://dl.bintray.com/scalaz/releases",
12+
"sonatype releases" at "http://oss.sonatype.org/content/repositories/releases"
13+
)
14+
15+
lazy val _scalacOptions = Seq("-unchecked")
16+
17+
lazy val _pomExtra = {
18+
<url>https://github.com/t2v/stackable-controller</url>
19+
<licenses>
20+
<license>
21+
<name>Apache License, Version 2.0</name>
22+
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
23+
<distribution>repo</distribution>
24+
</license>
25+
</licenses>
26+
<scm>
27+
<url>git@github.com:t2v/stackable-controller</url>
28+
<connection>scm:git:git@github.com:t2v/stackable-controller</connection>
29+
</scm>
30+
<developers>
31+
<developer>
32+
<id>gakuzzzz</id>
33+
<name>gakuzzzz</name>
34+
<url>https://github.com/gakuzzzz</url>
35+
</developer>
36+
</developers>
37+
}
38+
39+
val Scala211 = "2.11.7"
40+
41+
lazy val core = Project(
42+
id = "core",
43+
base = file("core")
44+
).settings(
45+
organization := _organization,
46+
name := "stackable-controller",
47+
version := _version,
48+
scalaVersion := Scala211,
49+
crossScalaVersions := Scala211 :: Nil,
50+
publishTo := _publishTo(version.value),
51+
publishMavenStyle := true,
52+
resolvers ++= _resolvers,
53+
libraryDependencies ++= Seq(
54+
"com.typesafe.play" %% "play" % play.core.PlayVersion.current % "provided"
55+
),
56+
sbtPlugin := false,
57+
scalacOptions ++= _scalacOptions,
58+
publishMavenStyle := true,
59+
publishArtifact in Test := false,
60+
pomIncludeRepository := { x => false },
61+
pomExtra := _pomExtra
62+
)
63+
64+
lazy val sample = Project("sample", file("sample")).enablePlugins(play.sbt.PlayScala).settings(
65+
version := _version,
66+
scalaVersion := Scala211,
67+
resolvers ++= _resolvers,
68+
routesGenerator := StaticRoutesGenerator,
69+
libraryDependencies ++= Seq(
70+
play.sbt.Play.autoImport.jdbc,
71+
play.sbt.Play.autoImport.specs2 % "test",
72+
"com.typesafe.play" %% "play" % play.core.PlayVersion.current,
73+
"org.scalikejdbc" %% "scalikejdbc" % "2.3.5",
74+
"org.scalikejdbc" %% "scalikejdbc-config" % "2.3.5",
75+
"org.scalikejdbc" %% "scalikejdbc-play-initializer" % "2.5.0",
76+
"org.slf4j" % "slf4j-simple" % "[1.7,)"
77+
)
78+
) dependsOn(core)
79+
80+
lazy val root = Project(id = "root", base = file(".")).settings(
81+
scalaVersion := Scala211
82+
).aggregate(core, sample)

project/Build.scala

-92
This file was deleted.

project/build.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.11
1+
sbt.version=0.13.15

0 commit comments

Comments
 (0)