Created
February 7, 2013 23:13
-
-
Save raul782/4735103 to your computer and use it in GitHub Desktop.
SBT template : 2.10 + slick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright 2013 Raul Rodriguez | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, | |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
// See the License for the specific language governing permissions and | |
// limitations under the License. | |
// | |
// | |
name := "My Project" | |
version := "0.1.0" | |
scalaVersion in ThisBuild := "2.10.0" | |
organization := "com.organization" | |
libraryDependencies ++= { | |
Seq( | |
"org.specs2" %% "specs2" % "1.13" % "test", | |
"org.scalatest" % "scalatest_2.10" % "2.0.M5b" % "test", | |
"org.scalamock" %% "scalamock-scalatest-support" % "3.0" % "test", | |
"org.scalamock" %% "scalamock-specs2-support" % "3.0" % "test", | |
"com.typesafe.slick" %% "slick" % "1.0.0", | |
"org.slf4j" % "slf4j-nop" % "1.6.4", | |
"mysql" % "mysql-connector-java" % "5.1.22" | |
) | |
} | |
// if you have more than one main method, you can specify which is used when typing 'run' in sbt | |
// mainclass := Some("com.mycode.App") | |
resolvers ++= Seq("snapshots" at "http://oss.sonatype.org/content/repositories/snapshots", | |
"releases" at "http://oss.sonatype.org/content/repositories/releases" | |
) | |
scalacOptions ++= Seq("-unchecked", "-deprecation") | |
// needed to stop a clash between slf4j-log4j12 and logback-classic | |
ivyXML := <dependencies> | |
<dependency org="eu.medsea.mimeutil" name="mime-util" rev="2.1.3" > | |
// <exclude module="slf4j-log4j12" /> | |
</dependency> | |
</dependencies> | |
// only show warnings and errors on the screen for all tasks (the default is Info) | |
// individual tasks can then be more verbose using the previous setting | |
logLevel := Level.Info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment