Skip to content

Commit

Permalink
Set Scala 2.13 as project version and fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
paualarco committed Nov 7, 2022
1 parent b8678c5 commit b227505
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

set -e
sbt ++3.1.2 ci-release
sbt ci-release
13 changes: 9 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ skip in publish := true //required by sbt-ci-release

def sharedSettings(publishForScala3: Boolean= true) = {
Seq(
scalaVersion := "3.1.2",
scalaVersion := "2.13.8",
crossScalaVersions := Seq("2.12.17", "2.13.8") ++ (if (publishForScala3) Seq("3.1.2") else Seq.empty)
,
publishArtifact := (CrossVersion.partialVersion(scalaVersion.value) match {
Expand Down Expand Up @@ -221,7 +221,6 @@ lazy val gcs = monixConnector("gcs", Dependencies.GCS , isITParallelExecution =
lazy val elasticsearch = monixConnector("elasticsearch", Dependencies.Elasticsearch, isITParallelExecution = true)

//internal

lazy val awsAuth = monixConnector("aws-auth", Dependencies.AwsAuth, isMimaEnabled = false)

def monixConnector(
Expand All @@ -241,7 +240,13 @@ def monixConnector(
.settings(sharedSettings(scala3Publish))
.configs(IntegrationTest, IT)
.enablePlugins(AutomateHeaderPlugin)
.settings(if(isMimaEnabled) mimaSettings(s"monix-$connectorName") else Seq.empty)
.settings(
if(isMimaEnabled) {
mimaSettings(s"monix-$connectorName")
} else { Seq.empty },
Compile / doc / sources := { if (scalaVersion.value.startsWith("3.")) Seq.empty else (Compile / doc / sources).value },
Test / doc / sources := { if (scalaVersion.value.startsWith("3.")) Seq.empty else (Compile / doc / sources).value }
)
}

//=> non published modules
Expand Down Expand Up @@ -285,7 +290,7 @@ lazy val mdocSettings = Seq(
.value,
scalacOptions in (ScalaUnidoc, unidoc) ++= Seq(
"-doc-source-url", s"https://github.com/monix/monix-connect/tree/v${version.value}€{FILE_PATH}.scala",
baseDirectory.in(LocalRootProject).value.getAbsolutePath,
"-sourcepath", baseDirectory.in(LocalRootProject).value.getAbsolutePath,
"-doc-title", "Monix Connect",
"-doc-version", s"v${version.value}",
"-groups"
Expand Down
2 changes: 1 addition & 1 deletion docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ title: Overview
Find all release [versions](https://github.com/monix/monix-connect/releases)).

```scala
libraryDependencies += "io.monix" %% "monix-connect" % "0.7.0"
libraryDependencies += "io.monix" %% "monix-connect" % "0.9.0"
```

⚠️ **Mind that the project isn't yet stable, so binary compatibility is not guaranteed.**
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,4 @@ class GcsBlobSpec extends AnyWordSpecLike with IdiomaticMockito with Matchers wi
verify(underlying, times(1)).listAcls()
}
}
}
}

0 comments on commit b227505

Please sign in to comment.