@@ -21,7 +21,7 @@ skip in publish := true //required by sbt-ci-release
2121
2222def sharedSettings (publishForScala3 : Boolean = true ) = {
2323 Seq (
24- scalaVersion := " 3.1.2 " ,
24+ scalaVersion := " 2.13.8 " ,
2525 crossScalaVersions := Seq (" 2.12.17" , " 2.13.8" ) ++ (if (publishForScala3) Seq (" 3.1.2" ) else Seq .empty)
2626 ,
2727 publishArtifact := (CrossVersion .partialVersion(scalaVersion.value) match {
@@ -221,7 +221,6 @@ lazy val gcs = monixConnector("gcs", Dependencies.GCS , isITParallelExecution =
221221lazy val elasticsearch = monixConnector(" elasticsearch" , Dependencies .Elasticsearch , isITParallelExecution = true )
222222
223223// internal
224-
225224lazy val awsAuth = monixConnector(" aws-auth" , Dependencies .AwsAuth , isMimaEnabled = false )
226225
227226def monixConnector (
@@ -241,7 +240,13 @@ def monixConnector(
241240 .settings(sharedSettings(scala3Publish))
242241 .configs(IntegrationTest , IT )
243242 .enablePlugins(AutomateHeaderPlugin )
244- .settings(if (isMimaEnabled) mimaSettings(s " monix- $connectorName" ) else Seq .empty)
243+ .settings(
244+ if (isMimaEnabled) {
245+ mimaSettings(s " monix- $connectorName" )
246+ } else { Seq .empty },
247+ Compile / doc / sources := { if (scalaVersion.value.startsWith(" 3." )) Seq .empty else (Compile / doc / sources).value },
248+ Test / doc / sources := { if (scalaVersion.value.startsWith(" 3." )) Seq .empty else (Compile / doc / sources).value }
249+ )
245250}
246251
247252// => non published modules
@@ -285,7 +290,7 @@ lazy val mdocSettings = Seq(
285290 .value,
286291 scalacOptions in (ScalaUnidoc , unidoc) ++= Seq (
287292 " -doc-source-url" , s " https://github.com/monix/monix-connect/tree/v ${version.value}€{FILE_PATH}.scala " ,
288- baseDirectory.in(LocalRootProject ).value.getAbsolutePath,
293+ " -sourcepath " , baseDirectory.in(LocalRootProject ).value.getAbsolutePath,
289294 " -doc-title" , " Monix Connect" ,
290295 " -doc-version" , s " v ${version.value}" ,
291296 " -groups"
0 commit comments