-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.sbt
More file actions
77 lines (63 loc) · 2.76 KB
/
build.sbt
File metadata and controls
77 lines (63 loc) · 2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name := "mgo"
ThisBuild / organization := "org.openmole"
ThisBuild / scalaVersion := "3.7.2"
val monocleVersion = "3.2.0"
lazy val settings: Seq[Setting[_]] = Seq(
//addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.10"),
resolvers += "jitpack" at "https://jitpack.io",
javacOptions ++= Seq("-source", "11", "-target", "11"),
scalacOptions ++= Seq("-Xtarget:11", "-language:higherKinds"),
scalacOptions ++= Seq("-language:postfixOps", "-source:3.7")
)
lazy val mgo = Project(id = "mgo", base = file("mgo")) settings(settings: _*) settings (
libraryDependencies += "org.apache.commons" % "commons-math3" % "3.6.1",
libraryDependencies += "dev.optics" %% "monocle-core" % monocleVersion,
libraryDependencies += "dev.optics" %% "monocle-macro" % monocleVersion,
libraryDependencies += "org.typelevel" %% "squants" % "1.8.3", //cross(CrossVersion.for2_13Use3),
libraryDependencies += "com.github.pathikrit" %% "better-files" % "3.9.2",
libraryDependencies += "com.github.openmole" % "JSAT" % "52daf354b728051f22bdb429ca77f561f9791872",
excludeDependencies += ExclusionRule(organization = "org.typelevel", name = "cats-kernel_2.13"),
Test / testOptions += Tests.Argument(TestFrameworks.ScalaCheck, "-verbosity", "1")
)
lazy val root = (project in file(".")).aggregate(mgo).settings (
publishArtifact := false
)
/* Publish */
ThisBuild / publishMavenStyle := true
ThisBuild / Test / publishArtifact := false
//publishArtifact := false
ThisBuild / licenses := Seq("GPLv3" -> url("http://www.gnu.org/licenses/"))
ThisBuild / homepage := Some(url("https://github.com/openmole/mgo"))
ThisBuild / scmInfo := Some(ScmInfo(url("https://github.com/openmole/mgo.git"), "scm:git:git@github.com:openmole/mgo.git"))
ThisBuild / publishTo := {
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
else localStaging.value
}
ThisBuild / developers := List(
Developer(
id = "romainreuillon",
name = "Romain Reuillon",
email = "",
url = url("https://github.com/romainreuillon/")
)
)
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseVersionBump := sbtrelease.Version.Bump.Minor
releaseTagComment := s"Releasing ${(ThisBuild / version).value}"
releaseCommitMessage := s"Bump version to ${(ThisBuild / version).value}"
publishConfiguration := publishConfiguration.value.withOverwrite(true)
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("publishSigned"),
releaseStepCommand("sonaRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)