Update sbt to 2.0.6 - #504
Conversation
📝 WalkthroughWalkthroughThe build configuration updates SBT from version ChangesSBT upgrade
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@project/build.properties`:
- Line 1: Update the githubWorkflowJavaVersions setting in ci.sbt so generated
GitHub Actions workflows use Temurin JDK 17 instead of JDK 11, ensuring
compatibility with sbt.version 2.0.6.
- Line 1: Update the Coveralls configuration in project/plugins.sbt to use a
plugin version compatible with sbt 2.0.6, or remove the sbt-coveralls
declaration and all related Coveralls usages if no compatible replacement is
available. Ensure no references to the sbt 1-only version 1.3.15 remain.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 219795e0-cb2a-42bf-897b-7e142f1510d9
📒 Files selected for processing (1)
project/build.properties
| @@ -1 +1 @@ | |||
| sbt.version=1.12.15 | |||
| sbt.version=2.0.6 | |||
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
if rg -n 'githubWorkflowJavaVersions := Seq\(JavaSpec\.temurin\("11"\)\)' ci.sbt; then
echo "CI still pins JDK 11"
exit 1
fiRepository: nafg/slick-migration-api
Length of output: 247
🌐 Web query:
sbt 2.0 minimum Java version JDK 17
💡 Result:
Yes, sbt 2.0 requires a minimum of JDK 17 to run [1][2][3]. The requirement was implemented because sbt 2.x uses Scala 3.8.4 for its metabuild, build definitions, and plugins, which necessitates JDK 17 or higher [2][3]. To enforce this, the official sbt runner scripts are designed to detect the Java version before launch and will fail with an error if the detected environment is using a JDK version lower than 17 [4][5]. For optimal compatibility, the official sbt documentation recommends using Eclipse Adoptium Temurin JDK 17 [1].
Citations:
- 1: https://www.scala-sbt.org/2.x/docs/en/Setup.html
- 2: https://www.scala-lang.org/blog/2026/06/29/sbt2.html
- 3: https://eed3si9n.com/sbt-2.0.0
- 4: [2.x] fix: Runner should fail on JDK < 17 for sbt 2.x sbt/sbt#8825
- 5: [2.x] "server was not detected" (runner should fail on JDK 8) sbt/sbt#8813
Set the CI JDK to 17 for sbt 2.
sbt.version=2.0.6 raises the project build to sbt 2.x, which requires JDK 17 or higher. ci.sbt:17 still generates GitHub workflows with Temurin 11, so the generated workflow will fail to run sbt. Update githubWorkflowJavaVersions to use JDK 17.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@project/build.properties` at line 1, Update the githubWorkflowJavaVersions
setting in ci.sbt so generated GitHub Actions workflows use Temurin JDK 17
instead of JDK 11, ensuring compatibility with sbt.version 2.0.6.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
artifact_url="https://repo1.maven.org/maven2/org/scoverage/sbt-coveralls_sbt2_3/1.3.15/sbt-coveralls_sbt2_3-1.3.15.pom"
curl -fsS "$artifact_url" >/dev/nullRepository: nafg/slick-migration-api
Length of output: 213
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Repo files relevant to sbt/coveralls:"
git ls-files | rg '(^|/)(project/(build\.properties|plugins\.sbt)|plugins\.sbt|\.sc)$|coveralls|sbt-coveralls' || true
echo
echo "project/build.properties:"
if [ -f project/build.properties ]; then cat -n project/build.properties; fi
echo
echo "project/plugins.sbt:"
if [ -f project/plugins.sbt ]; then cat -n project/plugins.sbt; fi
echo
echo "Maven artifact dirs for sbt-coveralls:"
python3 - <<'PY'
import urllib.request, re
from urllib.parse import quote
index = "https://repo1.maven.org/maven2/org/scoverage/sbt-coveralls/"
try:
text = urllib.request.urlopen(index, timeout=20).read().decode("utf-8")
except Exception as e:
print("INDEX_ERROR", repr(e))
text = ""
for tag in re.findall(r'href="([^"]+)/?">[^<]+/</a>', text):
if re.fullmatch(r'v?\d+\.?\d*\.?\d*[-.a-zA-Z0-9_]+', tag.rsplit("/", 1)[-1]):
print(index + tag.strip("/") + "/")
PYRepository: nafg/slick-migration-api
Length of output: 817
🌐 Web query:
repo1.maven.org org scoverage sbt-coveralls_2.12_1.0 1.3.15 sbt-coveralls
💡 Result:
The artifact sbt-coveralls_2.12_1.0 version 1.3.15 is an sbt plugin used to upload sbt-scoverage reports to Coveralls [1][2]. It is published under the group ID org.scoverage [1][3]. To use this version in your sbt project, you can add it to your project's plugins by including the following line in your project/plugins.sbt file [1]: addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.15") This artifact is hosted on Maven Central and supports Scala 2.12 and sbt 1.0+ environments [1][3][4]. Further documentation and source code can be found in the official GitHub repository for sbt-coveralls [5].
Citations:
- 1: https://index.scala-lang.org/scoverage/sbt-coveralls/artifacts/sbt-coveralls/1.3.15
- 2: https://javadoc.io/doc/org.scoverage/sbt-coveralls_2.12_1.0/latest/index.html
- 3: https://central.sonatype.com/artifact/org.scoverage/sbt-coveralls
- 4: https://index.scala-lang.org/scoverage/sbt-coveralls/artifacts/sbt-coveralls?stableOnly=true
- 5: https://github.com/scoverage/sbt-coveralls
🌐 Web query:
Maven Central org.scoverage sbt-coveralls latest version artifacts sbt coveralls 2 0 sbt2
💡 Result:
As of August 9, 2026, the latest version of the sbt-coveralls plugin (org.scoverage:sbt-coveralls) is 1.3.15 [1][2]. Regarding your query about sbt 2.0 support: - The current versions of sbt-coveralls (including 1.3.15) are primarily designed for sbt 1.x [3][4]. - There is currently no official release of sbt-coveralls that explicitly targets or provides native support for sbt 2.0. - While the broader sbt-scoverage plugin has seen active development [5], the sbt-coveralls plugin has not released a 2.0 version to align with the sbt 2.x ecosystem [1][2]. To use the plugin in your project, you can add it to your plugins file as follows: addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.15") [1]
Citations:
- 1: https://index.scala-lang.org/scoverage/sbt-coveralls/artifacts/sbt-coveralls/1.3.15
- 2: https://github.com/scoverage/sbt-coveralls/releases
- 3: https://index.scala-lang.org/scoverage/sbt-coveralls/artifacts/sbt-coveralls
- 4: https://index.scala-lang.org/scoverage/sbt-coveralls/artifacts/sbt-coveralls/1.3.8
- 5: https://index.scala-lang.org/scoverage/sbt-scoverage/artifacts/sbt-scoverage?stableOnly=true
Update or remove the sbt 1-only Coveralls plugin.
With project/build.properties set to sbt 2.0.6, addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.15") no longer resolves because sbt-coveralls 1.3.15 is published only for sbt 1.x. Update project/plugins.sbt to an sbt 2-compatible Coveralls plugin, or remove the plugin and any Coveralls usages.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@project/build.properties` at line 1, Update the Coveralls configuration in
project/plugins.sbt to use a plugin version compatible with sbt 2.0.6, or remove
the sbt-coveralls declaration and all related Coveralls usages if no compatible
replacement is available. Ensure no references to the sbt 1-only version 1.3.15
remain.
|
Tick the box to add this pull request to the merge queue (same as
|
|
Superseded by |
About this PR
📦 Updates org.scala-sbt:sbt from
1.12.15to2.0.6⚠📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a
.scala-steward.conffile.Have a fantastic day writing Scala!
⚙ Adjust future updates
Add this to your
.scala-steward.conffile to ignore future updates of this dependency:Or, add this to slow down future updates of this dependency: