-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
119 lines (105 loc) · 4.07 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*******************************************************************************
* Copyright 2013 Roman Levenstein
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
import sbt._
import Keys._
import com.typesafe.sbt.osgi._
import sbtrelease._
import sbtrelease.ReleasePlugin.autoImport._
import sbtrelease.ReleaseStateTransformations._
import com.typesafe.sbt.pgp.PgpKeys
import ReleaseTransformations._
lazy val typesafe = "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
lazy val typesafeSnapshot = "Typesafe Snapshots Repository" at "http://repo.typesafe.com/typesafe/snapshots/"
lazy val sonatypeSnapshot = "Sonatype Snapshots Repository" at "https://oss.sonatype.org/content/repositories/snapshots/"
lazy val akkaVersion = "2.5.11"
lazy val root = Project(id = "akka-kryo-serialization", base = file(".")).settings(
organization := "com.github.romix.akka",
resolvers += typesafe,
resolvers += typesafeSnapshot,
resolvers += sonatypeSnapshot,
// publishArtifact in packageDoc := false,
scalaVersion := "2.11.12",
// crossScalaVersions := Seq(scalaVersion.value, "2.12.6"),
libraryDependencies += "com.typesafe.akka" %% "akka-remote" % akkaVersion,
libraryDependencies += "com.esotericsoftware" % "kryo" % "4.0.2",
libraryDependencies += "org.lz4" % "lz4-java" % "1.4",
libraryDependencies += "commons-io" % "commons-io" % "2.5" % "test",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % "test",
libraryDependencies += "com.typesafe.akka" %% "akka-persistence" % akkaVersion % "test",
libraryDependencies += "com.typesafe.akka" %% "akka-testkit" % akkaVersion % "test",
parallelExecution in Test := false,
scalacOptions := Seq(
"-encoding", "utf8",
"-feature",
"-unchecked",
"-deprecation",
"-language:existentials",
"-Xlog-reflective-calls"
),
scalacOptions += scalaVersion.map { sv: String =>
if (sv.startsWith("2.11")) "-optimise" else "-opt:l:project"
}.value,
//Enabling hardware AES support if available
javaOptions in run += "-XX:+UseAES -XX:+UseAESIntrinsics",
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
// Configure cross builds.
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
// ReleaseStep(action = Command.process("publishSigned", _), enableCrossBuild = true),
setNextVersion,
commitNextVersion,
// ReleaseStep(action = Command.process("sonatypeReleaseAll", _), enableCrossBuild = true),
pushChanges
),
pomExtra := <url>https://github.com/romix/akka-kryo-serialization</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:romix/akka-kryo-serialization.git</url>
<connection>scm:git:[email protected]:romix/akka-kryo-serialization.git</connection>
</scm>
<developers>
<developer>
<id>romix</id>
<name>Roman Levenstein</name>
<email>[email protected]</email>
</developer>
</developers>)
//.settings(SbtOsgi.osgiSettings: _*)
//.settings(
// OsgiKeys.privatePackage := Nil,
// OsgiKeys.exportPackage := Seq("com.romix.*")
//)