@@ -66,24 +66,24 @@ lazy val docs = project
66
66
dontPublish,
67
67
description := " Api Documentation" ,
68
68
autoAPIMappings := true ,
69
- scalacOptions in Compile := scaladocOptions(
70
- (baseDirectory in ThisBuild ).value,
69
+ ( Compile / scalacOptions) := scaladocOptions(
70
+ (ThisBuild / baseDirectory ).value,
71
71
version.value,
72
72
apiVersion.value
73
73
),
74
- scalacOptions in (ScalaUnidoc , unidoc) ++= versionSpecificEnabledFlags(scalaVersion.value),
75
- unidocProjectFilter in (ScalaUnidoc , unidoc) := inProjects(
74
+ (ScalaUnidoc / unidoc / scalacOptions ) ++= versionSpecificEnabledFlags(scalaVersion.value),
75
+ (ScalaUnidoc / unidoc / unidocProjectFilter ) := inProjects(
76
76
`rho-core`,
77
77
`rho-hal`,
78
78
`rho-swagger`
79
79
),
80
80
git.remoteRepo := " git@github.com:http4s/rho.git" ,
81
81
ghpagesCleanSite := VersionedGhPages .cleanSite0.value,
82
82
ghpagesSynchLocal := VersionedGhPages .synchLocal0.value,
83
- mappings in makeSite := {
83
+ (makeSite / mappings) := {
84
84
val (major, minor) = apiVersion.value
85
85
for {
86
- (f, d) <- (mappings in ( ScalaUnidoc , packageDoc) ).value
86
+ (f, d) <- (ScalaUnidoc / packageDoc / mappings ).value
87
87
} yield (f, s " api/ $major. $minor/ $d" )
88
88
}
89
89
)
@@ -120,7 +120,7 @@ def versionSpecificEnabledFlags(version: String) = CrossVersion.partialVersion(v
120
120
/* Don't publish setting */
121
121
lazy val dontPublish = packagedArtifacts := Map .empty
122
122
123
- lazy val license = licenses in ThisBuild := Seq (
123
+ lazy val license = ( ThisBuild / licenses) := Seq (
124
124
" Apache License, Version 2.0" -> url(" http://www.apache.org/licenses/LICENSE-2.0.txt" )
125
125
)
126
126
@@ -130,9 +130,9 @@ lazy val buildSettings = publishing ++
130
130
crossScalaVersions := Seq (scala_213, scala_212),
131
131
scalacOptions := compilerFlags ++ versionSpecificEnabledFlags(scalaVersion.value),
132
132
resolvers += Resolver .sonatypeRepo(" snapshots" ),
133
- fork in run := true ,
134
- organization in ThisBuild := " org.http4s" ,
135
- homepage in ThisBuild := Some (url(homepageUrl)),
133
+ (run / fork) := true ,
134
+ ( ThisBuild / organization) := " org.http4s" ,
135
+ ( ThisBuild / homepage) := Some (url(homepageUrl)),
136
136
description := " A self documenting DSL build upon the http4s framework" ,
137
137
license,
138
138
libraryDependencies ++= Seq (
@@ -147,20 +147,20 @@ lazy val buildSettings = publishing ++
147
147
)
148
148
149
149
// to keep REPL usable
150
- scalacOptions in (Compile , console) --= Seq (" -Ywarn-unused:imports" , " -Xfatal-warnings" )
150
+ (Compile / console / scalacOptions ) --= Seq (" -Ywarn-unused:imports" , " -Xfatal-warnings" )
151
151
152
152
lazy val publishing = Seq (
153
153
extras,
154
154
// Don't publish root pom. It's not needed.
155
- packagedArtifacts in LocalRootProject := Map .empty,
156
- publishArtifact in Test := false ,
157
- scmInfo in ThisBuild := {
155
+ ( LocalRootProject / packagedArtifacts) := Map .empty,
156
+ ( Test / publishArtifact) := false ,
157
+ ( ThisBuild / scmInfo) := {
158
158
val base = " github.com/http4s/rho"
159
159
Some (ScmInfo (url(s " https:// $base" ), s " scm:git:https:// $base" , Some (s " scm:git:git@ $base" )))
160
160
}
161
161
)
162
162
163
- lazy val extras = pomExtra in ThisBuild := (
163
+ lazy val extras = ( ThisBuild / pomExtra) := (
164
164
<developers >
165
165
<developer >
166
166
<id >brycelane</id >
0 commit comments