Commit Graph

12489 Commits

Author SHA1 Message Date
BrianHotopp ce7727e52b [1.x] fix: Make custom-scala-org scripted test hermetic (#9260)
The original fixture pinned
  scalaOrganization := "io.github.scala-wasm"
  scalaVersion := "3.8.3-RC1-wasm-bin-SNAPSHOT"
and ran compile. The wasm fork never published a release of
scala3-library_3 -- only a snapshot to Sonatype's central-snapshots
repo, which has ~90-day retention. #8732 merged 2026-02-21; the
snapshot was GC'd ~2026-05-22 and develop CI began failing
deterministically.

Fixes #9259.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 13:01:40 -04:00
Anatolii Kmetiuk 2fe2e10cc9
[1.x] Fix #9190: avoid leaving partial jar after interrupted package (#9196)
Resource and JAR atomicity is pushed down into sbt/io 1.12.0-SNAPSHOT
(IO.copyFile, IO.transfer, IO.jar/zip stage to a sibling temp file and
atomic-move into place). Bump sbt's io dependency to consume that.

In Package.makeJar, stop deleting the existing JAR before calling IO.jar.
Atomic IO.jar replaces the destination only after the staged JAR is
complete, so deleting up front would just destroy the last good artifact
on interrupt without changing the failure mode.

Generated-by: Codex (gpt-5.5) and Claude Sonnet 4.6
2026-05-07 01:23:36 -04:00
Eugene Yokota f2d97b703e sbt 1.12.11 2026-05-02 16:29:03 -04:00
eugene yokota 1843f386e6
[1.x] Bump to lm 1.12.2 (#9167) 2026-05-02 15:09:57 -04:00
Eugene Yokota 0f946cb961 sbt 1.12.10 2026-04-27 01:45:20 -04:00
eugene yokota b41ca564f6
[1.x] Bump sbtn to 2.0.0-RC13 (#9139) 2026-04-27 01:01:00 -04:00
eugene yokota 0a4bdae464
Merge pull request #9128 from eed3si9n/bport1/eviction-error
[1.x] bport: Add Test configuration to evictionWarningOptions
2026-04-24 19:57:57 -04:00
Zainab Ali 62a20201de [1.x] Add Test configuration to evictionWarningOptions (#9102)
* Add Test configuration to evictionWarningOptions
* Add Test configuration to default evictionWarningOptions
* Deduplicate eviction errors based on callers.
* Update eviction error test for semantic versioning.
* Group evictions by configuration and update test.
2026-04-24 03:25:47 -04:00
Eugene Yokota 6f1ce28dc1 lm 1.12.1 2026-04-24 03:09:08 -04:00
eugene yokota 764c9e13ba
[1.x] deps: Gigahorse 0.9.4 (#9126) 2026-04-24 00:07:58 -04:00
eugene yokota 872db3d817
[1.x] fix: Fixes managedScalaInstance false support (#9121) (#9123)
**Problem**
When managedScalaInstance is set to false, we stopped creating
ScalaInstance, but the documentation says the user can
pull in their own dependencies.

**Solution**
Attempt to construct a ScalaInstance from update report
even when managedScalaInstance is set to false.
2026-04-23 03:32:42 -04:00
eugene yokota 6723437f97
[1.x] hide JDK warnings if JDK 26 or later (#9120)
Co-authored-by: kenji yoshida <6b656e6a69@gmail.com>
2026-04-21 23:39:59 -04:00
Piotr Paradziński 26d852964b
[1.x] change branch for dependency submission to 1.12.x (#9088) 2026-04-13 18:29:52 -04:00
Piotr Paradziński 4ec7f188c7
[1.x] deps: log4j 2.25.4 (#9086) 2026-04-13 16:55:29 -04:00
Eugene Yokota 00899b0657 sbt 1.12.9 2026-04-07 00:28:30 -04:00
eugene yokota 207594ada8
[1.x] Update lm-coursier-shaded to 2.1.13 (#9029) 2026-04-05 18:53:22 -04:00
Eugene Yokota 760a63e224 sbt 1.12.8 2026-03-24 22:10:39 -04:00
eugene yokota 267880ad26
[1.x] Fixes the source dependency fix (#8974)
**Problem/Solution**
Run was missing cwd.
2026-03-24 12:29:18 -04:00
eugene yokota 34856b06ad
[1.x] Fix test format (#8969) 2026-03-24 00:01:10 -04:00
Eugene Yokota 5391601ee9 sbt 1.12.7 2026-03-23 18:14:15 -04:00
Anatolii Kmetiuk 3a474ab060 Allowlist-based approach to VCS string sanitization 2026-03-23 17:33:58 -04:00
Anatolii Kmetiuk 1ce945b6b7 Harden Windows VCS URI fragments against command injection
- Use Process(argv) for git/hg/svn without cmd /c on Windows
- Add VcsUriFragment.validate for fragments in clone/checkout/update
- Add tests
2026-03-23 17:31:37 -04:00
eugene yokota 2378719087
Merge pull request #8918 from eed3si9n/wip/revert-coursier
Revert "[1.x] deps: Update lm-coursier-shaded 2.1.12 (#8902)"
2026-03-17 23:46:57 -04:00
Eugene Yokota 18c8619535 Add scripted test for sbt-site 2026-03-17 22:58:13 -04:00
Eugene Yokota 80925a5c59 Revert "[1.x] deps: Update lm-coursier-shaded 2.1.12 (#8902)"
This reverts commit 132e0c6bb5.
2026-03-17 22:51:41 -04:00
Eugene Yokota de617bff87 sbt 1.12.6 2026-03-15 22:39:04 -04:00
eugene yokota f5da35c092
Update semanticdbVersion in SemanticdbPlugin.scala (#8907)
Co-authored-by: kenji yoshida <6b656e6a69@gmail.com>
2026-03-15 04:55:00 -04:00
Michał Pawlik 132e0c6bb5
[1.x] deps: Update lm-coursier-shaded 2.1.12 (#8902)
Update lm-coursier-shaded 2.1.12
2026-03-14 06:06:13 -04:00
eugene yokota 9a43bae475
[1.x] log4j 2.25.3 (#8872) 2026-03-04 01:36:53 -05:00
Eugene Yokota 52d54e495f sbt 1.12.5 2026-03-01 18:00:15 -05:00
eugene yokota 345e0e0739
[1.x] sbtn 1.12.5 (#8859) 2026-03-01 16:53:48 -05:00
eugene yokota ec0d181abe
[1.x] fix: Runner should fail on JDK < 17 for sbt 2.x (#8825) (#8854)
**Problem**
Running sbt 2.x with JDK 8 produces a confusing "server was not
detected" error because the JDK version check only required JDK 8+
and only ran in the non-native-client path.

**Solution**
Move java_version detection before the native client decision and add
checkJava17ForSbt2 that requires JDK 17+ when sbt major version >= 2.

Fixes #8813

Co-authored-by: Dream <42954461+eureka928@users.noreply.github.com>
2026-03-01 05:30:13 -05:00
eugene yokota c88b641c36
[1.x] fix: Refer to universal sbtn in detectNativeClient (#8810) (#8851)
** Problem **
sbtn-x86_64-apple-darwin doesn't exist anymore

** Solution **
point to universal binary instead

Co-authored-by: fireXtract <fireXtract@users.noreply.github.com>
2026-03-01 05:28:23 -05:00
eugene yokota 0e11aebddc
[1.x] Comments in dot files (#8841) (#8848)
**Problem**
Hash comments doesn't work in dot files.

**Solution**
This reapplies the comment removal sed,
with improved inline comment handling.
2026-03-01 05:27:17 -05:00
eugene yokota 808f601cbc
[1.x] fix: Fixes double quotes handling in fork mode (#8765) (#8845)
When using the arguments file (`@argsfile`) mechanism for forked runs,
double quotes inside arguments were not escaped, causing the JVM's
argument file parser to strip them. For example, passing `{"a":1}` as
an argument would result in `{a:1}`.

Escape `"` as `\"` in `createArgumentsFile`, matching the existing
backslash escaping, so the JVM correctly round-trips quoted arguments.

Fixes sbt/sbt#7129

Co-authored-by: BrianHotopp <brihoto@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:05:43 -05:00
Eugene Yokota f49145f4f6 sbt 1.12.4 2026-02-23 03:46:28 -05:00
eugene yokota 97b69bba79
[1.x] Respect `scalaOrganization` in compiler bridge resolution (#8732) (#8799)
**Problem**
`scalaOrganization` was ignored during compiler bridge resolution because `ZincLmUtil.getDefaultBridgeModule` hard-coded `ScalaArtifacts.Organization` (`org.scala-lang`).

**Solution**
Add a `scalaOrganization` parameter to `ZincLmUtil` methods, and passing `scalaOrganization` value to those methods.

Generated-by: Claude Opus 4.6

Co-authored-by: Rikito Taniguchi <rikiriki1238@gmail.com>
2026-02-23 03:12:46 -05:00
eugene yokota a131470288
Revert "[1.x] fix: Handle JVM parameters with spaces in dot files (#8730) (#8738)" (#8798)
This reverts commit 44187ea00b.
2026-02-23 02:41:50 -05:00
Eugene Yokota dc754e6a2e sbt 1.12.3 2026-02-14 19:00:32 -05:00
eugene yokota 4467369757
[1.x] fix: handle --version in sbt 2.x project dirs (sbt#8717) (#8735) (#8739)
**Problem**
`sbt --version` in sbt 2.x project directories was delegated to the native client, which could try to start/connect to a server instead of printing version info.

**Solution**
Skip native-client delegation when `--version` is requested, and add runner-script tests for sbt 1.x and 2.x project variants.

Co-authored-by: Pluto <128720033+it-education-md@users.noreply.github.com>
2026-02-14 05:01:04 -05:00
eugene yokota 44187ea00b
[1.x] fix: Handle JVM parameters with spaces in dot files (#8730) (#8738)
**Problem**

The sbt launcher script used naive word splitting when parsing `.sbtopts` and `.jvmopts`, so arguments with spaces were split incorrectly. For example, `-J--add-modules jdk.incubator.concurrent` in `.sbtopts` and `-Dtest.key="value with spaces"` in `.jvmopts` were not passed to the JVM as intended.

Co-authored-by: PandaMan <joewartson757@gmail.com>
2026-02-14 05:00:45 -05:00
eugene yokota c8b2b03f8a
[1.x] Print warning about scala-reflect not found (#8736)
**Problem**
scala-reflect not found issue is confusing.

**Solution**
Print out a specialized warning message.
2026-02-14 04:04:40 -05:00
eugene yokota 029c45bb81
[1.x] fix: handle --script-version sbt 2.x project dirs (#8715) (#8737)
When in an sbt 2.x project directory, the script used to delegate to sbtn
before checking --script-version, so 'sbt --script-version' ran sbtn and
failed. Now we print the script version and exit before the native client
branch.

Co-authored-by: PandaMan <joewartson757@gmail.com>
2026-02-14 03:50:50 -05:00
eugene yokota e82acdfe56
[1.x] require coreutils for RPM (#8712) (#8713)
**Problem**
Apparently sbt can fail when it doesn't have rm,
which can happen "when building relocatable RPM's and building an OS image in a chroot."

**Solution**
It was suggested that we require coreutils.
2026-02-07 19:20:46 -05:00
eugene yokota 810f45901e
Merge pull request #8707 from eed3si9n/bport/scala-version-unification
[1.x] fix: Restore Scala 2 artifact version unification
2026-02-07 02:35:55 -05:00
eugene yokota 8feb6463d2
Merge pull request #8706 from eed3si9n/bport/restore-cli-ops
[1.x] fix: restore CLI precedence over .sbtopts
2026-02-07 02:35:31 -05:00
Pluto 59f4bd743e [2.x] fix: restore CLI precedence over .sbtopts
According to the issue, `.sbtopts` entries are appended after
CLI args in sbt 1.12.x, so `.sbtopts` JVM memory settings (e.g., `-Xmx2g`) override CLI `--mem`,
causing invalid JVM settings.
2026-02-07 01:58:36 -05:00
circlecrystalin 02cd20e928 [2.x] fix: Fixes the handling of special characters in dot files (#8558)
- Replace 'eval echo $line' with 'printf "%s\n" "$line"' in loadConfigFile()
- Prevents shell expansion of special characters like |, *, &, etc.
- Fixes issue where properties with pipes, wildcards, and ampersands
  caused 'command not found' or 'unexpected' errors
- Add test to verify special characters are handled correctly on all platforms
2026-02-07 01:58:05 -05:00
calm 6b41a3d093 [2.x] fix: Restore Scala 2 artifact version unification (#8689) (#8700)
Commit 92b0564dc (fix for #8632) changed `csrSameVersions` so that Scala 2.13+ only aligned `scala-library` and `scala3-library`. This removed `scala-compiler` and `scala-reflect` from version
unification, so transitive dependencies pulling in an older `scala-compiler` (e.g. 2.13.15 via `refined_2.13`) were no longer evicted to match `scalaVersion` (e.g. 2.13.18).
2026-02-07 01:49:27 -05:00
Eugene Yokota 1a50aa32f2 sbt 1.12.2 2026-02-04 00:23:22 -05:00