Skip to content

sbt 0.13.17. migrate to build.sbt #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
lazy val _organization = "jp.t2v"
lazy val _version = "0.6.0-SNAPSHOT"

def _publishTo(v: String) = {
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}

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>[email protected]:t2v/stackable-controller</url>
<connection>scm:git:[email protected]: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.7"

lazy val core = Project(
id = "core",
base = file("core")
).settings(
organization := _organization,
name := "stackable-controller",
version := _version,
scalaVersion := Scala211,
crossScalaVersions := Scala211 :: Nil,
publishTo := _publishTo(version.value),
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,
resolvers ++= _resolvers,
routesGenerator := StaticRoutesGenerator,
libraryDependencies ++= Seq(
play.sbt.Play.autoImport.jdbc,
play.sbt.Play.autoImport.specs2 % "test",
"com.typesafe.play" %% "play" % play.core.PlayVersion.current,
"org.scalikejdbc" %% "scalikejdbc" % "2.3.5",
"org.scalikejdbc" %% "scalikejdbc-config" % "2.3.5",
"org.scalikejdbc" %% "scalikejdbc-play-initializer" % "2.5.0",
"org.slf4j" % "slf4j-simple" % "[1.7,)"
)
) dependsOn(core)

lazy val root = Project(id = "root", base = file(".")).settings(
scalaVersion := Scala211
).aggregate(core, sample)
92 changes: 0 additions & 92 deletions project/Build.scala

This file was deleted.

2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=0.13.11
sbt.version=0.13.17