-
Notifications
You must be signed in to change notification settings - Fork 20
Update sbt to 2.0.8 #511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
scala-steward
wants to merge
1
commit into
nafg:master
Choose a base branch
from
scala-steward:update/sbt-2.0.8
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update sbt to 2.0.8 #511
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| sbt.version=1.13.0 | ||
| sbt.version=2.0.8 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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
π Supported by static analysis
π Script executed:
Repository: nafg/slick-migration-api
Length of output: 428
π Script executed:
Repository: nafg/slick-migration-api
Length of output: 858
π Web query:
sbt 2 plugin cross version artifact suffix Scala 3 sbt2 official documentationπ‘ Result:
In sbt 2.x, plugins are automatically published to Maven-layout repositories with the suffix
_sbt2_3appended to the artifact name [1]. This suffix indicates that the plugin is compatible with sbt 2.x and built using Scala 3 [1][2]. For example, if you define a plugin namedsbt-myplugin, it will be published assbt-myplugin_sbt2_3[1]. You do not need to manually append this suffix in yourbuild.sbt; the sbt build system handles it automatically [1]. Key aspects regarding sbt 2.x plugin artifact naming and cross-building include: 1. Automatic Suffixing: The_sbt2_3suffix is a mandatory part of the publishing convention for sbt 2.x plugins to ensure correct resolution in Maven-compatible repositories [1]. 2. Cross-Building: When cross-building a plugin for both sbt 1.x (Scala 2.12) and sbt 2.x (Scala 3), sbt uses the project matrix feature or cross-building configurations to manage the different target environments [3][4]. 3. Configuration: You typically set yourcrossScalaVersionsto include both Scala 2.12.x and Scala 3.x, and adjustpluginCrossBuild / sbtVersionbased on thescalaBinaryVersionto ensure the plugin targets the correct sbt version for each Scala version [3][5]. 4. Compatibility: To bridge API differences between sbt 1.x and sbt 2.x, the official recommendation is to use thesbt2-compatplugin, which provides a unified API for common tasks such as file handling and metadata access [6][7]. For detailed configuration on setting up cross-building for plugins, consult the official "Migrating from sbt 1.x" documentation, which outlines how to handle thepluginCrossBuildsetting and source shims [3].Citations:
π Script executed:
Repository: nafg/slick-migration-api
Length of output: 518
π Script executed:
Repository: nafg/slick-migration-api
Length of output: 994
π Script executed:
Repository: nafg/slick-migration-api
Length of output: 854
π Script executed:
Repository: nafg/slick-migration-api
Length of output: 388
Do not enable sbt 2 until all loaded plugins support sbt 2.
sbt-coveralls:1.3.15andsbt-mergify-github-actions:0.9.0have no_sbt2_3artifacts. sbt 2 can therefore fail while loadingproject/plugins.sbt, before compilation or tests. Update or remove these plugins, then verify the build and release commands.π€ Prompt for AI Agents
Source: MCP tools