Skip to content

[2.x] fix: Fix sbtopts files priority in sbt launch script#8514

Merged
eed3si9n merged 11 commits intosbt:developfrom
mohansinghi:fix/sbtopts-priority-7179
Jan 13, 2026
Merged

[2.x] fix: Fix sbtopts files priority in sbt launch script#8514
eed3si9n merged 11 commits intosbt:developfrom
mohansinghi:fix/sbtopts-priority-7179

Conversation

@mohansinghi
Copy link
Copy Markdown
Contributor

Problem

Project-level .sbtopts settings were being overridden by distribution defaults because the script loaded files in the wrong order. Since Java processes duplicate -D properties left-to-right (last wins), project options appearing first were overridden.

Solution

  1. Reordered loading: dist → machine → project (was: machine/else dist → project)
  2. Changed project .sbtopts from prepend to append so it appears last and wins

Changes

  • Modified /sbt script lines 854-862
  • Project .sbtopts now appended instead of prepended

Testing

Verified that project-level config now correctly overrides machine-wide config:

  • Command line shows: machine-config first, project-local last
  • Java system property reads: project-local

Fixes #7179


Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=158349177

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wrong sbt script sbtopts files proiority

2 participants