Skip to content

Commit a6648f3

Browse files
authored
Merge pull request #39 from seratch/sbt-0.13.12
Bump sbt version to 0.13.12
2 parents 146bbd7 + f72edc2 commit a6648f3

File tree

3 files changed

+110
-128
lines changed

3 files changed

+110
-128
lines changed

build.sbt

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
lazy val _version = "0.6.0"
2+
lazy val scalikejdbcVersion = "2.4.2"
3+
lazy val mauricioVersion = "0.2.20" // provided
4+
lazy val postgresqlVersion = "9.4-1201-jdbc41"
5+
lazy val defaultPlayVersion = play.core.PlayVersion.current
6+
7+
lazy val core = (project in file("core")).settings(
8+
organization := "org.scalikejdbc",
9+
name := "scalikejdbc-async",
10+
version := _version,
11+
scalaVersion := "2.11.8",
12+
crossScalaVersions := Seq("2.11.8", "2.10.6"),
13+
publishTo <<= version { (v: String) => _publishTo(v) },
14+
publishMavenStyle := true,
15+
resolvers ++= _resolvers,
16+
libraryDependencies <++= (scalaVersion) { scalaVersion =>
17+
Seq(
18+
"org.scalikejdbc" %% "scalikejdbc" % scalikejdbcVersion % "compile",
19+
"org.scalikejdbc" %% "scalikejdbc-interpolation" % scalikejdbcVersion % "compile",
20+
"com.github.mauricio" %% "postgresql-async" % mauricioVersion % "provided",
21+
"com.github.mauricio" %% "mysql-async" % mauricioVersion % "provided",
22+
"org.postgresql" % "postgresql" % postgresqlVersion % "test",
23+
"mysql" % "mysql-connector-java" % "5.1.+" % "test",
24+
"org.scalatest" %% "scalatest" % "3.0.0" % "test",
25+
"ch.qos.logback" % "logback-classic" % "1.1.+" % "test"
26+
)
27+
},
28+
sbtPlugin := false,
29+
transitiveClassifiers in Global := Seq(Artifact.SourceClassifier),
30+
incOptions := incOptions.value.withNameHashing(true),
31+
scalacOptions ++= _scalacOptions,
32+
publishMavenStyle := true,
33+
publishArtifact in Test := false,
34+
parallelExecution in Test := false,
35+
pomIncludeRepository := { x => false },
36+
pomExtra := _pomExtra
37+
)
38+
39+
lazy val playPlugin = (project in file("play-plugin")).settings(
40+
sbtPlugin := false,
41+
organization := "org.scalikejdbc",
42+
name := "scalikejdbc-async-play-plugin",
43+
version := _version,
44+
scalaVersion := "2.11.8",
45+
crossScalaVersions := Seq("2.11.8", "2.10.6"),
46+
resolvers ++= _resolvers,
47+
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/",
48+
libraryDependencies ++= Seq(
49+
"com.github.mauricio" %% "postgresql-async" % mauricioVersion % "provided",
50+
"com.github.mauricio" %% "mysql-async" % mauricioVersion % "provided",
51+
"com.typesafe.play" %% "play" % defaultPlayVersion % "provided",
52+
"com.typesafe.play" %% "play-test" % defaultPlayVersion % "test"
53+
),
54+
testOptions in Test += Tests.Argument(TestFrameworks.Specs2, "sequential", "true"),
55+
publishTo <<= version { (v: String) => _publishTo(v) },
56+
publishMavenStyle := true,
57+
publishArtifact in Test := false,
58+
pomIncludeRepository := { x => false },
59+
pomExtra := _pomExtra,
60+
transitiveClassifiers in Global := Seq(Artifact.SourceClassifier),
61+
incOptions := incOptions.value.withNameHashing(true),
62+
scalacOptions ++= _scalacOptions
63+
) dependsOn(core)
64+
65+
lazy val playSample = (project in file("play-sample")).enablePlugins(play.PlayScala).settings(
66+
scalaVersion in ThisBuild := "2.11.8",
67+
libraryDependencies ++= Seq(
68+
"org.scalikejdbc" %% "scalikejdbc" % scalikejdbcVersion,
69+
"org.scalikejdbc" %% "scalikejdbc-config" % scalikejdbcVersion,
70+
"org.scalikejdbc" %% "scalikejdbc-interpolation" % scalikejdbcVersion,
71+
"com.github.mauricio" %% "postgresql-async" % mauricioVersion,
72+
"com.github.mauricio" %% "mysql-async" % mauricioVersion,
73+
"org.postgresql" % "postgresql" % postgresqlVersion,
74+
"com.github.tototoshi" %% "play-flyway" % "1.2.+",
75+
"mysql" % "mysql-connector-java" % "5.1.+",
76+
"org.json4s" %% "json4s-ext" % "3.4.0",
77+
"com.github.tototoshi" %% "play-json4s-native" % "0.3.+"
78+
),
79+
resolvers ++= _resolvers
80+
).dependsOn(core, playPlugin)
81+
82+
def _publishTo(v: String) = {
83+
val nexus = "https://oss.sonatype.org/"
84+
if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
85+
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
86+
}
87+
val _resolvers = Seq(
88+
"sonatype releases" at "https://oss.sonatype.org/content/repositories/releases"
89+
)
90+
val _scalacOptions = Seq("-deprecation", "-unchecked")
91+
val _pomExtra = <url>http://scalikejdbc.org/</url>
92+
<licenses>
93+
<license>
94+
<name>Apache License, Version 2.0</name>
95+
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
96+
<distribution>repo</distribution>
97+
</license>
98+
</licenses>
99+
<scm>
100+
<url>git@github.com:scalikejdbc/scalikejdbc-async.git</url>
101+
<connection>scm:git:git@github.com:scalikejdbc/scalikejdbc-async.git</connection>
102+
</scm>
103+
<developers>
104+
<developer>
105+
<id>seratch</id>
106+
<name>Kazuhiro Sera</name>
107+
<url>http://seratch.net/</url>
108+
</developer>
109+
</developers>

project/Build.scala

Lines changed: 0 additions & 127 deletions
This file was deleted.

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.11
1+
sbt.version=0.13.12

0 commit comments

Comments
 (0)