swh:1:snp:aa8b4c9b793b36ad527c4b4777087a0aff8ee6b3
Tip revision: 7e1e7154b64800020ab5ae68ef258b9b679a8a15 authored by Romain Reuillon on 06 January 2020, 07:03:06 UTC
Update libs, prepare for 2.13
Update libs, prepare for 2.13
Tip revision: 7e1e715
build.sbt
name := "mgo"
organization in ThisBuild := "org.openmole"
scalaVersion in ThisBuild := "2.12.10"
crossScalaVersions in ThisBuild := Seq("2.12.10")
val monocleVersion = "2.0.0"
def settings = Seq(
//addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.10"),
resolvers += Resolver.sonatypeRepo("public"),
resolvers += Resolver.sonatypeRepo("staging"),
resolvers += Resolver.sonatypeRepo("snapshots"),
javacOptions ++= Seq("-source", "1.8", "-target", "1.8"),
scalariformAutoformat := true
) ++ scalariformSettings(true) ++ paradise
def paradise =
Seq(
addCompilerPlugin("org.scalamacros" %% "paradise" % "2.1.1" cross CrossVersion.full),
scalacOptions ++= Seq("-target:jvm-1.8")
)
/* 2.13 */
/*Seq(
scalacOptions ++= Seq("-target:jvm-1.8", "-language:postfixOps", "-Ymacro-annotations")
)*/
lazy val mgo = Project(id = "mgo", base = file("mgo")) settings(settings: _*) settings (
// macro paradise doesn't work with scaladoc
sources in (Compile, doc) := Nil,
libraryDependencies += "org.apache.commons" % "commons-math3" % "3.6.1",
libraryDependencies += "com.github.julien-truffaut" %% "monocle-core" % monocleVersion,
libraryDependencies += "com.github.julien-truffaut" %% "monocle-generic" % monocleVersion,
libraryDependencies += "com.github.julien-truffaut" %% "monocle-macro" % monocleVersion,
libraryDependencies += "org.typelevel" %% "squants" % "1.6.0",
//libraryDependencies += "org.typelevel" %% "cats-core" % "2.1.0",
libraryDependencies += "com.github.pathikrit" %% "better-files" % "3.8.0",
testOptions in Test += Tests.Argument(TestFrameworks.ScalaCheck, "-verbosity", "1")
)
/* Publish */
publishMavenStyle in ThisBuild := true
publishArtifact in Test in ThisBuild := false
publishArtifact := false
pomIncludeRepository in ThisBuild := { _ => false }
publishTo in ThisBuild := sonatypePublishToBundle.value
pomIncludeRepository in ThisBuild := { _ => false }
licenses in ThisBuild := Seq("Affero GPLv3" -> url("http://www.gnu.org/licenses/"))
homepage in ThisBuild := Some(url("https://github.com/openmole/mgo"))
scmInfo in ThisBuild := Some(ScmInfo(url("https://github.com/openmole/mgo.git"), "scm:git:git@github.com:openmole/mgo.git"))
pomExtra in ThisBuild := (
<developers>
<developer>
<id>romainreuillon</id>
<name>Romain Reuillon</name>
</developer>
<developer>
<id>guillaumecherel</id>
<name>Guillaume Chérel</name>
</developer>
</developers>
)
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseVersionBump := sbtrelease.Version.Bump.Minor
releaseTagComment := s"Releasing ${(version in ThisBuild).value}"
releaseCommitMessage := s"Bump version to ${(version in ThisBuild).value}"
sonatypeProfileName := "org.openmole"
publishConfiguration := publishConfiguration.value.withOverwrite(true)
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
tagRelease,
releaseStepCommand("publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
//releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)