@@ -3,8 +3,8 @@ import com.scalapenos.sbt.prompt._
3
3
import Dependencies ._
4
4
import microsites .ExtraMdFileConfig
5
5
6
- ThisBuild / scalaVersion := " 2.13.15 "
7
- ThisBuild / crossScalaVersions := Seq (" 2.12.20" , " 2.13.15 " , " 3.3.4" )
6
+ ThisBuild / scalaVersion := " 2.13.16 "
7
+ ThisBuild / crossScalaVersions := Seq (" 2.12.20" , " 2.13.16 " , " 3.3.4" )
8
8
ThisBuild / evictionErrorLevel := Level .Info
9
9
ThisBuild / mimaBaseVersion := " 1.8.0"
10
10
Test / parallelExecution := false
@@ -43,39 +43,39 @@ val commonSettings = Seq(
43
43
headerLicense := Some (HeaderLicense .ALv2 (" 2018-2021" , " ProfunKtor" )),
44
44
testFrameworks += new TestFramework (" munit.Framework" ),
45
45
libraryDependencies ++= Seq (
46
- Libraries .catsEffectKernel,
47
- Libraries .redisClient,
48
- Libraries .catsEffect % Test ,
49
- Libraries .catsLaws % Test ,
50
- Libraries .catsTestKit % Test ,
51
- Libraries .munitCore % Test ,
52
- Libraries .munitScalacheck % Test
53
- ) ++ pred(scalaVersion.value.startsWith(" 3" ), t = Seq .empty, f = Seq (CompilerPlugins .kindProjector)),
46
+ Libraries .catsEffectKernel,
47
+ Libraries .redisClient,
48
+ Libraries .catsEffect % Test ,
49
+ Libraries .catsLaws % Test ,
50
+ Libraries .catsTestKit % Test ,
51
+ Libraries .munitCore % Test ,
52
+ Libraries .munitScalacheck % Test
53
+ ) ++ pred(scalaVersion.value.startsWith(" 3" ), t = Seq .empty, f = Seq (CompilerPlugins .kindProjector)),
54
54
resolvers += " Apache public" at " https://repository.apache.org/content/groups/public/" ,
55
55
scalacOptions ++= pred(
56
- getVersion(scalaVersion.value) == Some (2 , 12 ),
57
- t = Seq (" -Xmax-classfile-name" , " 80" ),
58
- f = Seq .empty
59
- ),
56
+ getVersion(scalaVersion.value) == Some (2 , 12 ),
57
+ t = Seq (" -Xmax-classfile-name" , " 80" ),
58
+ f = Seq .empty
59
+ ),
60
60
scalacOptions ++= pred(
61
- scalaVersion.value.startsWith(" 3" ),
62
- t = Seq (" -source:3.0-migration" ),
63
- f = Seq (" -Wconf:any:wv" )
64
- ),
61
+ scalaVersion.value.startsWith(" 3" ),
62
+ t = Seq (" -source:3.0-migration" ),
63
+ f = Seq (" -Wconf:any:wv" )
64
+ ),
65
65
Compile / doc / sources := (Compile / doc / sources).value,
66
66
Compile / unmanagedSourceDirectories ++= {
67
- getVersion(scalaVersion.value) match {
68
- case Some ((2 , 12 )) => Seq (" scala-2.12" , " scala-2" )
69
- case Some ((2 , 13 )) => Seq (" scala-2.13+" , " scala-2" )
70
- case _ => Seq (" scala-2.13+" , " scala-3" )
71
- }
72
- }.map(baseDirectory.value / " src" / " main" / _),
67
+ getVersion(scalaVersion.value) match {
68
+ case Some ((2 , 12 )) => Seq (" scala-2.12" , " scala-2" )
69
+ case Some ((2 , 13 )) => Seq (" scala-2.13+" , " scala-2" )
70
+ case _ => Seq (" scala-2.13+" , " scala-3" )
71
+ }
72
+ }.map(baseDirectory.value / " src" / " main" / _),
73
73
Compile / doc / scalacOptions ++= Seq (" -groups" , " -implicits" ),
74
74
autoAPIMappings := true ,
75
75
scalafmtOnCompile := true ,
76
76
scmInfo := Some (
77
- ScmInfo (url(
" https://github.com/profunktor/redis4cats" ),
" scm:git:[email protected] :profunktor/redis4cats.git" )
78
- )
77
+ ScmInfo (url(
" https://github.com/profunktor/redis4cats" ),
" scm:git:[email protected] :profunktor/redis4cats.git" )
78
+ )
79
79
)
80
80
81
81
lazy val noPublish = Seq (
@@ -109,7 +109,7 @@ lazy val `redis4cats-core` = project
109
109
.settings(libraryDependencies += Libraries .literally)
110
110
.settings(
111
111
libraryDependencies ++=
112
- pred(scalaVersion.value.startsWith(" 3" ), t = Seq .empty, f = Seq (Libraries .reflect(scalaVersion.value)))
112
+ pred(scalaVersion.value.startsWith(" 3" ), t = Seq .empty, f = Seq (Libraries .reflect(scalaVersion.value)))
113
113
)
114
114
.settings(
115
115
isMimaEnabled := true ,
@@ -170,13 +170,13 @@ lazy val examples = project
170
170
.settings(noPublish)
171
171
.settings(
172
172
libraryDependencies ++= Seq (
173
- Libraries .catsEffect,
174
- Libraries .circeCore,
175
- Libraries .circeGeneric,
176
- Libraries .circeParser,
177
- Libraries .log4CatsSlf4j,
178
- Libraries .logback % " runtime"
179
- )
173
+ Libraries .catsEffect,
174
+ Libraries .circeCore,
175
+ Libraries .circeGeneric,
176
+ Libraries .circeParser,
177
+ Libraries .log4CatsSlf4j,
178
+ Libraries .logback % " runtime"
179
+ )
180
180
)
181
181
.enablePlugins(AutomateHeaderPlugin )
182
182
.dependsOn(`redis4cats-log4cats`)
@@ -207,41 +207,41 @@ lazy val microsite = project
207
207
micrositeDocumentationUrl := " /api" ,
208
208
micrositeBaseUrl := " " ,
209
209
micrositeExtraMdFiles := Map (
210
- file(" README.md" ) -> ExtraMdFileConfig (
211
- " index.md" ,
212
- " home" ,
213
- Map (" title" -> " Home" , " position" -> " 0" )
214
- ),
215
- file(" CODE_OF_CONDUCT.md" ) -> ExtraMdFileConfig (
216
- " CODE_OF_CONDUCT.md" ,
217
- " page" ,
218
- Map (" title" -> " Code of Conduct" )
219
- )
220
- ),
210
+ file(" README.md" ) -> ExtraMdFileConfig (
211
+ " index.md" ,
212
+ " home" ,
213
+ Map (" title" -> " Home" , " position" -> " 0" )
214
+ ),
215
+ file(" CODE_OF_CONDUCT.md" ) -> ExtraMdFileConfig (
216
+ " CODE_OF_CONDUCT.md" ,
217
+ " page" ,
218
+ Map (" title" -> " Code of Conduct" )
219
+ )
220
+ ),
221
221
micrositeExtraMdFilesOutput := (Compile / resourceManaged).value / " jekyll" ,
222
222
micrositeGitterChannel := true ,
223
223
micrositeGitterChannelUrl := " profunktor-dev/redis4cats" ,
224
224
micrositePushSiteWith := GitHub4s ,
225
225
micrositeGithubToken := sys.env.get(" GITHUB_TOKEN" ),
226
226
scalacOptions --= Seq (
227
- " -Werror" ,
228
- " -Xfatal-warnings" ,
229
- " -Ywarn-unused-import" ,
230
- " -Ywarn-numeric-widen" ,
231
- " -Ywarn-dead-code" ,
232
- " -deprecation" ,
233
- " -Xlint:-missing-interpolator,_" ,
234
- " -Wconf:any:wv"
235
- ),
227
+ " -Werror" ,
228
+ " -Xfatal-warnings" ,
229
+ " -Ywarn-unused-import" ,
230
+ " -Ywarn-numeric-widen" ,
231
+ " -Ywarn-dead-code" ,
232
+ " -deprecation" ,
233
+ " -Xlint:-missing-interpolator,_" ,
234
+ " -Wconf:any:wv"
235
+ ),
236
236
addMappingsToSiteDir(ScalaUnidoc / packageDoc / mappings, micrositeDocumentationUrl),
237
237
ScalaUnidoc / unidoc / scalacOptions ++= Seq (
238
- " -doc-source-url" ,
239
- scmInfo.value.get.browseUrl + " /tree/master€{FILE_PATH}.scala" ,
240
- " -sourcepath" ,
241
- (LocalRootProject / baseDirectory).value.getAbsolutePath,
242
- " -doc-root-content" ,
243
- ((Compile / resourceDirectory).value / " rootdoc.txt" ).getAbsolutePath
244
- ),
238
+ " -doc-source-url" ,
239
+ scmInfo.value.get.browseUrl + " /tree/master€{FILE_PATH}.scala" ,
240
+ " -sourcepath" ,
241
+ (LocalRootProject / baseDirectory).value.getAbsolutePath,
242
+ " -doc-root-content" ,
243
+ ((Compile / resourceDirectory).value / " rootdoc.txt" ).getAbsolutePath
244
+ ),
245
245
ScalaUnidoc / unidoc / unidocProjectFilter := inAnyProject -- inProjects(examples)
246
246
)
247
247
.dependsOn(`redis4cats-effects`, `redis4cats-streams`, examples)
0 commit comments