Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci_scripts/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ EOF

export JVM_OPTS

TEST_ARGS=";error ;test:compile ;mimaReportBinaryIssues "
TEST_ARGS=";error ;Test/compile ;mimaReportBinaryIssues "
TEST_ARGS="$TEST_ARGS ;warn ;testOnly ;doc"

sbt ++$SCALA_VERSION "$TEST_ARGS"
25 changes: 11 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ commands:
parameters:
sbt_version:
type: string
default: "1.11.4"
default: "2.0.1"
steps:
- restore_cache:
keys:
Expand Down Expand Up @@ -150,7 +150,7 @@ commands:
jobs:
scala211_akka24:
docker:
- image: circleci/openjdk:8-jdk
- image: cimg/openjdk:26.0

working_directory: ~/repo

Expand All @@ -171,7 +171,7 @@ jobs:

scala212_akka25:
docker:
- image: circleci/openjdk:8-jdk
- image: cimg/openjdk:26.0

working_directory: ~/repo

Expand All @@ -191,7 +191,7 @@ jobs:

scala213_akka26:
docker:
- image: circleci/openjdk:8-jdk
- image: cimg/openjdk:26.0

working_directory: ~/repo

Expand All @@ -218,7 +218,7 @@ jobs:
environment:
AKKA_VERSION: 2.6.21
ITERATEES_VERSION: no
SCALA_VERSION: 3.8.3
SCALA_VERSION: 3.8.4

steps:
- checkout
Expand All @@ -231,7 +231,7 @@ jobs:

publish_snapshots:
docker:
- image: circleci/openjdk:8-jdk
- image: cimg/openjdk:26.0

working_directory: ~/repo

Expand All @@ -243,22 +243,19 @@ jobs:
keys:
- &snapshot_cache_key scala-{{ .Environment.CIRCLE_JOB }}-{{ checksum "build.sbt" }}-{{ checksum "project/Common.scala" }}

- deploy:
- run:
name: Publish artifacts to Sonatype Snapshots
command: |
if [ ! "${CIRCLE_BRANCH}" = "master" ]; then
echo "Skipped on branch ${CIRCLE_BRANCH}"
exit 0
fi

V=`sbt -Dsbt.log.noformat=true ';project akka-stream ;show version' | tail -n 1 | sed -e 's/^.* //g'`

echo "Static version: $V"
V=$(sbt --server 'show version' 2>&1 | sed 's/\x1b\[0[Jm]//g' | grep --color=never '[0-9]\+\.[0-9]\+' | tail -1 | sed 's/\[info\]//' | xargs | tr -cd '[:alnum:]._-')

if [ `echo "$V" | grep -- '-SNAPSHOT' | wc -l` -eq 0 ]; then
S=`echo "$V" | perl -pe 's/([0-9]+)$/${\($1 + 1)}-SNAPSHOT/'`
echo "Cannot bump $V to $S"
echo "version in ThisBuild := \"$S\"" > version.sbt
if [[ "$V" != *SNAPSHOT* ]]; then
echo "Skip non snapshot: $V"
exit 0
fi

export PUBLISH_REPO_NAME="Sonatype Nexus Repository Manager"
Expand Down
1 change: 0 additions & 1 deletion codestyle.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ ThisBuild / scalafmtOnCompile := true
inThisBuild(
List(
// scalaVersion := "2.13.3",
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
)
)
5 changes: 3 additions & 2 deletions project/Compiler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ object Compiler {
}

lazy val settings = Seq(
semanticdbEnabled := scalaBinaryVersion.value != "2.11",
Compile / unmanagedSourceDirectories ++= {
unmanaged(scalaVersion.value, (Compile / sourceDirectory).value)
},
Expand All @@ -28,7 +29,7 @@ object Compiler {
scalacOptions ++= {
val sv = scalaBinaryVersion.value

if (sv startsWith "3") {
if (sv.startsWith("3")) {
Seq("-Werror")
} else if (sv != "2.11") {
Seq("-Xfatal-warnings")
Expand All @@ -37,7 +38,7 @@ object Compiler {
}
},
scalacOptions ++= {
if (scalaBinaryVersion.value startsWith "2.") {
if (scalaBinaryVersion.value.startsWith("2.")) {
Seq(
"-Xlint",
"-g:vars"
Expand Down
7 changes: 2 additions & 5 deletions project/Publish.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ object Publish {

val settings = Seq(
Compile / doc / scalacOptions ++= {
if (scalaBinaryVersion.value startsWith "2.") {
if (scalaBinaryVersion.value.startsWith("2.")) {
Seq( /*"-diagrams", */ "-implicits", "-skip-packages", "samples")
} else {
Seq("-skip-by-id:samples")
Expand All @@ -47,10 +47,7 @@ object Publish {
publishMavenStyle := true,
Test / publishArtifact := false,
pomIncludeRepository := { _ => false },
licenses := Seq(
"Apache 2.0" ->
url("http://www.apache.org/licenses/LICENSE-2.0")
),
licenses := Seq(License.Apache2),
homepage := Some(url("http://reactivemongo.org")),
autoAPIMappings := true,
pomExtra := (<scm>
Expand Down
4 changes: 2 additions & 2 deletions project/Release.scala
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ object Release {
releaseCommitMessage := {
val ver = (ThisBuild / version).value

if (ver endsWith "-SNAPSHOT") {
if (ver.endsWith("-SNAPSHOT")) {
// Prepare the release the SNAPSHOT from master, with a release branch
s"Bump $ver"
} else {
Expand All @@ -104,7 +104,7 @@ object Release {
}
},
releaseProcess := {
if (version.value endsWith "-SNAPSHOT") releaseMaster.value
if (version.value.endsWith("-SNAPSHOT")) releaseMaster.value
else bumpMaster.value
}
)
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.13
sbt.version=2.0.1
8 changes: 4 additions & 4 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ resolvers ++= Seq(

addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.6.1")

addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.10.0-RC1")
addDependencyTreePlugin

addSbtPlugin("cchantep" % "sbt-scaladoc-compiler" % "0.7-SNAPSHOT")
addSbtPlugin("cchantep" % "sbt-scaladoc-compiler" % "0.8")

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.6.1")

addSbtPlugin("cchantep" % "sbt-hl-compiler" % "0.10-SNAPSHOT")
addSbtPlugin("cchantep" % "sbt-hl-compiler" % "0.12")

addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.6")

addSbtPlugin("com.github.sbt" % "sbt-release" % "1.5.0")

addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.1")

addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.6")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.7")
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ThisBuild / version := {
Seq(maj, min, patch, rc) <- Stable.unapplySeq(previousVer)
nextPatch <- scala.util.Try(patch.toInt).map(_ + 1).toOption
nextRc = {
if (rc startsWith "-RC") {
if (rc.startsWith("-RC")) {
scala.util
.Try(rc.stripPrefix("-RC").toInt)
.map(_ + 1)
Expand Down