-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
78 lines (60 loc) · 2.37 KB
/
build.sbt
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
76
77
78
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
//import scalariform.formatter.preferences._
//import com.typesafe.sbt.SbtScalariform.ScalariformKeys
ThisBuild / organization := "org.openmole"
name := "byte-pack"
ThisBuild / scalaVersion := "3.3.3"
ThisBuild / licenses := Seq("Affero GPLv3" -> url("http://www.gnu.org/licenses/"))
ThisBuild / homepage := Some(url("https://github.com/openmole/byte-pack"))
ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / pomIncludeRepository := { _ => false}
ThisBuild / scmInfo := Some(ScmInfo(url("https://github.com/openmole/byte-pack.git"), "scm:git:[email protected]:openmole/byte-pack.git"))
ThisBuild / pomExtra := {
<!-- Developer contact information -->
<developers>
<developer>
<id>romainreuillon</id>
<name>Romain Reuillon</name>
<url>https://github.com/romainreuillon/</url>
</developer>
</developers>
}
releaseVersionBump := sbtrelease.Version.Bump.Minor
releaseTagComment := s"Releasing ${(ThisBuild / version).value}"
releaseCommitMessage := s"Bump version to ${(ThisBuild / version).value}"
sonatypeProfileName := "org.openmole"
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
//releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)
def settings = Seq (
resolvers += Resolver.sonatypeRepo("snapshots"),
scalacOptions ++= Seq("-Xtarget:11", "-language:postfixOps")
)
lazy val bytePackType =
Project(id = "byte-pack-type", base = file("byte-pack-types")) settings(
settings,
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.11" % Test
)
lazy val bytePack =
Project(id = "byte-pack", base = file("byte-pack")) dependsOn bytePackType settings(
settings,
libraryDependencies += "io.github.bishabosha" %% "enum-extensions" % "0.1.1",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.11" % Test
)
lazy val bytePackMonocle =
Project(id = "byte-pack-monocle", base = file("byte-pack-monocle")) dependsOn (bytePack) settings(
settings,
libraryDependencies += "dev.optics" %% "monocle-core" % "3.2.0",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.11" % Test
)