Skip to content

Update sbt to 2.0.6 - #504

Closed
scala-steward wants to merge 1 commit into
nafg:masterfrom
scala-steward:update/sbt-2.0.6
Closed

Update sbt to 2.0.6#504
scala-steward wants to merge 1 commit into
nafg:masterfrom
scala-steward:update/sbt-2.0.6

Conversation

@scala-steward

Copy link
Copy Markdown
Contributor

About this PR

📦 Updates org.scala-sbt:sbt from 1.12.15 to 2.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.conf file.

Have a fantastic day writing Scala!

⚙ Adjust future updates

Add this to your .scala-steward.conf file to ignore future updates of this dependency:

updates.ignore = [ { groupId = "org.scala-sbt", artifactId = "sbt" } ]

Or, add this to slow down future updates of this dependency:

dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scala-sbt", artifactId = "sbt" }
}]
labels: library-update, early-semver-major, semver-spec-major, version-scheme:early-semver, commit-count:1

@scala-steward scala-steward mentioned this pull request Aug 9, 2026
@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The build configuration updates SBT from version 1.12.15 to 2.0.6.

Changes

SBT upgrade

Layer / File(s) Summary
Update SBT version
project/build.properties
The configured SBT version changes from 1.12.15 to 2.0.6.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Poem

A bunny hops through build files bright,
SBT now wears 2.0.6 tonight.
From 1.12.15, the old trail ends,
A fresh version joins our friends.
Hop, hop—builds take flight!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely states the main change: updating SBT to version 2.0.6.
Description check ✅ Passed The description directly explains the SBT version update and provides related release information.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 0ff8fc4 and 7dc780d.

📒 Files selected for processing (1)
  • project/build.properties

Comment thread project/build.properties
@@ -1 +1 @@
sbt.version=1.12.15
sbt.version=2.0.6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 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
fi

Repository: 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:


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/null

Repository: 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("/") + "/")
PY

Repository: 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:


🌐 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:


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.

@mergify

mergify Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@scala-steward

Copy link
Copy Markdown
Contributor Author

Superseded by

@scala-steward
scala-steward deleted the update/sbt-2.0.6 branch August 23, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant