@@ -21,7 +21,7 @@ import sbtrelease.ReleaseStateTransformations._
21
21
22
22
object BuildSettings {
23
23
24
- def releaseSettings : Seq [Setting [_]] = {
24
+ lazy val releaseSettings : Seq [Setting [_]] = {
25
25
Seq (
26
26
releaseCrossBuild := false ,
27
27
releaseProcess := Seq [ReleaseStep ](
@@ -40,7 +40,7 @@ object BuildSettings {
40
40
)
41
41
}
42
42
43
- private def commonSettings : Seq [Setting [_]] = {
43
+ private lazy val commonSettings : Seq [Setting [_]] = {
44
44
Seq (
45
45
homepage := Some (url(" https://christian-schlichtherle.github.com/fun-io/" )),
46
46
licenses := Seq (" Apache License, Version 2.0" -> url(" https://www.apache.org/licenses/LICENSE-2.0" )),
@@ -87,21 +87,18 @@ object BuildSettings {
87
87
)
88
88
}
89
89
90
- def aggregateSettings : Seq [Setting [_]] = {
90
+ lazy val aggregateSettings : Seq [Setting [_]] = {
91
91
commonSettings ++ Seq (
92
92
crossPaths := false ,
93
93
publishArtifact := false
94
94
)
95
95
}
96
96
97
- def artifactSettings : Seq [Setting [_]] = {
98
- commonSettings ++ inConfig(Test )(Seq (
99
- fork := true , // triggers `javaOptions`
100
- javaOptions += " -ea"
101
- ))
97
+ lazy val artifactSettings : Seq [Setting [_]] = {
98
+ commonSettings
102
99
}
103
100
104
- def librarySettings : Seq [Setting [_]] = {
101
+ lazy val librarySettings : Seq [Setting [_]] = {
105
102
artifactSettings ++ Seq (
106
103
// Support testing Java projects with ScalaTest et al:
107
104
compileOrder := CompileOrder .JavaThenScala ,
@@ -111,14 +108,14 @@ object BuildSettings {
111
108
)
112
109
}
113
110
114
- def javaLibrarySettings : Seq [Setting [_]] = {
111
+ lazy val javaLibrarySettings : Seq [Setting [_]] = {
115
112
librarySettings ++ Seq (
116
113
autoScalaLibrary := false ,
117
114
crossPaths := false
118
115
)
119
116
}
120
117
121
- def scalaLibrarySettings : Seq [Setting [_]] = {
118
+ lazy val scalaLibrarySettings : Seq [Setting [_]] = {
122
119
librarySettings ++ Seq (
123
120
crossScalaVersions := Seq (ScalaVersion_2_10 , ScalaVersion_2_11 , ScalaVersion_2_12 , ScalaVersion_2_13 )
124
121
)
0 commit comments