-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
89 lines (59 loc) · 2.51 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
79
80
81
82
83
84
85
scalaVersion := "3.3.3"
crossScalaVersions := Seq("3.3.3")
name := "container"
organization := "org.openmole"
libraryDependencies += "org.apache.httpcomponents" % "httpclient" % "4.5.10"
libraryDependencies += "org.typelevel" %% "squants" % "1.8.3" // cross(CrossVersion.for2_13Use3)
libraryDependencies += "com.github.pathikrit" %% "better-files" % "3.9.2"
libraryDependencies += "org.apache.commons" % "commons-compress" % "1.19"
libraryDependencies += "org.apache.commons" % "commons-exec" % "1.3"
val circeVersion = "0.14.6"
libraryDependencies ++= Seq(
"io.circe" %% "circe-core",
"io.circe" %% "circe-generic",
"io.circe" %% "circe-parser",
//"io.circe" %% "circe-generic-extras"
).map(_ % circeVersion)
//libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "2.1.3"
scalacOptions ++= Seq("-Xtarget:11", "-language:higherKinds", "-language:postfixOps", "-language:implicitConversions", "-Xmax-inlines:50")
/* Publish */
//import xerial.sbt.Sonatype.sonatypeCentralHost
//ThisBuild / sonatypeCredentialHost := sonatypeCentralHost
ThisBuild / publishMavenStyle := true
publishArtifact in Test in ThisBuild := false
//publishArtifact := false
pomIncludeRepository in ThisBuild := { _ => false }
publishTo := 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/container"))
scmInfo in ThisBuild := Some(ScmInfo(url("https://github.com/openmole/container.git"), "scm:git:git@github.com:openmole/container.git"))
pomExtra in ThisBuild := (
<developers>
<developer>
<id>romainreuillon</id>
<name>Romain Reuillon</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)
releaseCrossBuild := true
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)