Skip to content

Update sbt to 1.12.14#6474

Open
mrdziuban wants to merge 1 commit into
canton-network:mainfrom
obsidiansystems:mrdziuban/sbt-1.12
Open

Update sbt to 1.12.14#6474
mrdziuban wants to merge 1 commit into
canton-network:mainfrom
obsidiansystems:mrdziuban/sbt-1.12

Conversation

@mrdziuban

Copy link
Copy Markdown

Prior to v1.11.1, sbt had a memory leak (sbt/sbt#8142) in its update task that caused memory usage to grow linearly with the number of updates performed. This affects regular development as update is called as part of the compile task dependency graph.

After upgrading to a version that includes the fix (coursier/sbt-coursier#563, coursier/sbt-coursier#564), I've found development with sbt, especially with long-running sbt shell sessions, to be a more pleasant experience; there's less sluggishness and a lot fewer warnings that say "X seconds of the last 10 seconds were spent in garbage collection."

Pull Request Checklist

Cluster Testing

  • If a cluster test is required, comment /cluster_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If an upgrade test is required, comment /upgrade_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a hard-migration test is required (from the latest release), comment /hdm_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a logical synchronizer upgrade test is required (from canton-3.5), comment /lsu_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.

PR Guidelines

  • Include any change that might be observable by our partners or affect their deployment in the release notes.
  • Specify fixed issues with Fixes #n, and mention issues worked on using #n
  • Include a screenshot for frontend-related PRs - see README or use your favorite screenshot tool

Merge Guidelines

  • Make the git commit message look sensible when squash-merging on GitHub (most likely: just copy your PR description).

Prior to v1.11.1, sbt had a memory leak (sbt/sbt#8142) in its `update` task that caused memory usage to grow linearly with the number of `update`s performed. This affects regular development as `update` is called as part of the `compile` task dependency graph.

After upgrading to a version that includes the fix (coursier/sbt-coursier#563, coursier/sbt-coursier#564), I've found development with sbt, especially with long-running sbt shell sessions, to be a more pleasant experience; there's less sluggishness and a lot fewer warnings that say "X seconds of the last 10 seconds were spent in garbage collection."

Signed-off-by: Matt Dziuban <mrdziuban@gmail.com>
Comment thread build.sbt
scalacOptions ++= Seq("-Wconf:src=src_managed/.*:silent"),
// Needed to be able to resolve scalafmt snapshot versions
resolvers ++= Resolver.sonatypeOssRepos("snapshots"),
resolvers += Resolver.sonatypeCentralSnapshots,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

sonatypeOssRepos was deprecated in sbt 1.11.2. The build still loads but produces a new warning:

warning: method sonatypeOssRepos in class ResolverFunctions is deprecated (since 1.11.2): Sonatype OSS Repository Hosting (OSSRH) was sunset on 2025-06-30; remove this resolver. If snapshots are required, use:
  resolvers += Resolver.sonatypeCentralSnapshots

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.

5 participants