-
Notifications
You must be signed in to change notification settings - Fork 15
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
upgrade to scala2.12 #8
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
.idea/ | ||
.idea_modules/ | ||
target/ | ||
.bloop/ | ||
.metals/ | ||
project/metals.sbt |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import scalariform.formatter.preferences._ | ||
import com.typesafe.sbt.SbtScalariform.ScalariformKeys | ||
import scalariform.formatter.preferences._ | ||
|
||
name := "scala-migrations" | ||
|
||
|
@@ -18,7 +19,7 @@ licenses += "New BSD License" -> url("http://opensource.org/licenses/BSD-3-Claus | |
|
||
version := "1.1.2-SNAPSHOT" | ||
|
||
scalaVersion := "2.10.3" | ||
scalaVersion := "2.12.8" | ||
|
||
// For a single major Scala release, e.g. 2.x.y, include at most one | ||
// Scala release candidate in crossScalaVersions, e.g. "2.x.y-RC3". | ||
|
@@ -28,7 +29,17 @@ crossScalaVersions := Seq("2.9.0", "2.9.0-1", | |
"2.9.1", "2.9.1-1", | ||
"2.9.2", "2.9.3", | ||
"2.10.3", | ||
"2.11.0-M7") | ||
"2.11.0-M7", "2.12.8") | ||
|
||
// resolvers in Global ++= Seq( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't include commented out lines in general. What is the intention of this? |
||
// Resolver.mavenLocal, | ||
// Resolver.bintrayRepo("vpon", "maven"), | ||
// "maven" at "https://mvnrepository.com", | ||
// "twitter-repo" at "http://maven.twttr.com", | ||
// "vpon release" at "http://nexus.vpon.com/content/repositories/releases/", | ||
// "vpon snapshot" at "http://nexus.vpon.com/content/repositories/snapshots/", | ||
// "vpon dev" at "http://nexus.vpon.com/content/repositories/developments/" | ||
// ) | ||
|
||
// Increase warnings generated by the Scala compiler. | ||
// | ||
|
@@ -39,27 +50,29 @@ crossScalaVersions := Seq("2.9.0", "2.9.0-1", | |
// conversions and to maintain source compatibility so that separate | ||
// branches are not needed, pass "-language:implicitConversions" so | ||
// that "-feature" can be used without generating spurious warnings. | ||
scalacOptions <++= scalaVersion map { v: String => | ||
val options1 = "-deprecation" :: "-unchecked" :: Nil | ||
if (v.startsWith("2.9.0")) { | ||
options1 | ||
} | ||
else { | ||
val options2 = "-Xlint" :: options1 | ||
if (v.startsWith("2.9")) | ||
options2 | ||
else | ||
"-feature" :: "-language:implicitConversions" :: options2 | ||
} | ||
} | ||
// scalacOptions <++= scalaVersion map { v: String => | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Delete commented out code. |
||
// val options1 = "-deprecation" :: "-unchecked" :: Nil | ||
// if (v.startsWith("2.9.0")) { | ||
// options1 | ||
// } | ||
// else { | ||
// val options2 = "-Xlint" :: options1 | ||
// if (v.startsWith("2.9")) | ||
// options2 | ||
// else | ||
// "-feature" :: "-language:implicitConversions" :: options2 | ||
// } | ||
// } | ||
|
||
libraryDependencies ++= Seq( | ||
"com.novocode" % "junit-interface" % "0.10-M4" % "test", | ||
"log4jdbc" % "log4jdbc" % "1.1" from "http://log4jdbc.googlecode.com/files/log4jdbc4-1.1.jar", | ||
// "com.googlecode.log4jdbc" % "log4jdbc" % "1.2", | ||
"log4jdbc" % "log4jdbc" % "1.1" from "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/log4jdbc/log4jdbc4-1.1.jar", | ||
"mysql" % "mysql-connector-java" % "[5.1.0,5.2)" % "test", | ||
"org.apache.derby" % "derby" % "[10.5.3.0,11.0)" % "test", | ||
// "org.apache.derby" % "derby" % "[10.5.3.0,11.0)" % "test", | ||
"org.apache.derby" % "derby" % "10.5.3.0_1" % "test", | ||
"org.hamcrest" % "hamcrest-core" % "1.3" % "test", | ||
"org.jmock" % "jmock-junit4" % "[2.5.1,3.0)" % "test", | ||
"org.jmock" % "jmock-junit4" % "2.12.0" % "test", //[2.5.1,3.0) | ||
"org.slf4j" % "slf4j-api" % "[1.5.8,2.0)", | ||
"org.slf4j" % "slf4j-log4j12" % "[1.5.8,2.0)" % "test", | ||
"postgresql" % "postgresql" % "9.1-901.jdbc4" % "test") | ||
|
@@ -71,12 +84,12 @@ parallelExecution in Test := false | |
|
||
testOptions += Tests.Argument(TestFrameworks.JUnit, "-v") | ||
|
||
scalariformSettings | ||
// scalariformSettings | ||
|
||
ScalariformKeys.preferences := FormattingPreferences(). | ||
setPreference(AlignParameters, true). | ||
setPreference(CompactControlReadability, true). | ||
setPreference(DoubleIndentClassDeclaration, true) | ||
ScalariformKeys.preferences := FormattingPreferences(). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove extra whitespace. |
||
setPreference(AlignParameters, true). | ||
setPreference(CompactControlReadability, true). | ||
setPreference(DoubleIndentClassDeclaration, true) | ||
|
||
publishMavenStyle := true | ||
|
||
|
@@ -123,14 +136,14 @@ pomPostProcess := { (node: scala.xml.Node) => | |
transformer.transform(node)(0) | ||
} | ||
|
||
publishTo <<= version { (v: String) => | ||
publishTo := { | ||
val nexus = "https://oss.sonatype.org/" | ||
if (v.trim.endsWith("SNAPSHOT")) | ||
if (version.value.trim.endsWith("SNAPSHOT")) | ||
Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else | ||
Some("releases" at nexus + "service/local/staging/deploy/maven2") | ||
} | ||
|
||
useGpg := true | ||
useGpg := true | ||
|
||
useGpgAgent := true | ||
useGpgAgent := true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=0.13.0 | ||
sbt.version=1.1.6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.1") | ||
// addSbtPlugin("org.jetbrains" % "sbt-idea-plugin" % "3.5.0") | ||
|
||
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.1") | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.0") | ||
|
||
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.2.0") | ||
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.3") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra whitespace.