Commit Graph

12507 Commits

Author SHA1 Message Date
eugene yokota 2aa4a29c93
Merge pull request #9456 from eed3si9n/bport1/sbtn-bump
[1.x] Backports
2026-07-16 01:02:19 -04:00
eugene yokota 92f1c98ff9 [1.x] ipcsocket 1.8.0 (#9433) 2026-07-15 18:27:03 -04:00
eugene yokota 891960e2ec [2.x] fix: Fixes shutdownall (#9435)
**Problem**
sbt shutdown all requires --server.

**Solution**
Fix it so it doesn't need extra flag.
2026-07-15 18:25:45 -04:00
Eugene Yokota 14057ad32b [1.x] sbtn 2.0.0-b4d628dd 2026-07-15 18:23:33 -04:00
Anatolii Kmetiuk c5e5e5f492
[1.x] fix dependency parsing for bsp (#9451) 2026-07-14 23:38:57 -04:00
dependabot[bot] 2fd977f558 [1.x] Bump actions/checkout from 6 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-22 20:32:10 +09:00
Eugene Yokota df1243400e sbt 1.12.13 2026-06-21 17:36:11 -04:00
eugene yokota ff562ff8dc
Merge pull request #9365 from eed3si9n/bport1/sbtn
[1.x] bport: Update sbtn and ipcsocket
2026-06-21 15:48:35 -04:00
eugene yokota 95fe9b69ed [2.x] sbtn 2.0.0-2932685e (#9363) 2026-06-21 15:13:39 -04:00
eugene yokota 5da4fd525f [1.x] ipcsocket 1.7.0 (#9361) 2026-06-21 15:11:05 -04:00
kenji yoshida 03039176cc
[1.x] Update io to 1.12.2 (#9350) 2026-06-17 09:18:56 -04:00
Eugene Yokota b5bda9cc19 sbt 1.12.12 2026-06-14 02:04:51 -04:00
eugene yokota d3a88f58b4
[1.x] sbtn 2.0.0-f0d2fae4 (#9334) 2026-06-14 01:32:30 -04:00
eugene yokota 2cbadf4562
[1.x] perf: short-circuit --version from build.properties (#8822) (#9331)
Avoid launching sbt just to render --version by reading sbt.version directly from project/build.properties in the shell script, batch script, and sbtw wrapper. Tighten launcher integration assertions to verify version output no longer depends on the sbtVersion command output.

Co-authored-by: bitloi <89318445+bitloi@users.noreply.github.com>
2026-06-13 23:56:39 -04:00
eugene yokota 61c658a557
[1.x] Update sbtn to 2.0.0-RC14 (#9329) 2026-06-13 14:27:39 -04:00
eugene yokota 6e611a85f2
[1.x] ci: Skip 2.13 modules from graph submission (#9328) 2026-06-13 02:31:32 -04:00
BrianHotopp cb90a47ce8
[1.x] fix: Delegate JDK platform classes to the platform loader in console (#9327)
The console/consoleQuick REPL loader rejects JDK platform-module
classes: ClasspathFilter's post-check refuses classes whose code
source is a jrt: URL, so a top-down REPL reference to java.sql.* falls
through to the REPL's own classloader, which finds the bytes in the
runner-generated java9-rt-ext jar (via scala.ext.dirs) and dies in
defineClass:

  java.lang.SecurityException: Prohibited package name: java.sql

Wrap the REPL parent loader with a fallback that consults
ClassLoader.getPlatformClassLoader (reflectively; absent on JDK 8,
which has no platform loader) only after the existing chain misses,
so project classes keep winning and platform classes resolve instead
of being redefined. Linkage through the classpath loader (a JDBC
driver implementing java.sql.Driver) was already sound: the launcher's
topLoader delegates to the platform loader on JDK 9+; only the
top-down path through ClasspathFilter was broken.

Verified against sbt 1.11.7 (fails) and a patched 1.12.3-SNAPSHOT
(passes) with the original report's repro: java.sql.Timestamp,
a project class extending it, and DriverManager.getConnection with
the postgresql driver, which now reaches the network layer.

The console/* scripted group is added to CI; it was not in any
scripted glob, so the new test (and the pre-existing
console/project-compiler-bridge) never ran.

Fixes #4328 (still reproducible on 1.11.7 before this change).

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-06-13 01:54:58 -04:00
BrianHotopp 6ec1f742ab
[1.x] fix: Pump forked stdout/stderr to the captured active terminal (#9265)
Since #8678 (sbt 1.12.2), Fork.apply has routed the
connectInput && outputStrategy == StdoutOutput case through a new
JProcess path that calls jpb.inheritIO(). inheritIO ties the child
JVM's stdio to the sbt server JVM's OS-level fd 1/2, bypassing the
Terminal indirection. In server mode (which sbt --client uses),
that indirection is how task output reaches the client terminal — so
the child's stdout/stderr went nowhere observable to the client.

Keep redirectInput(Redirect.INHERIT) so REPL/raw-mode keystrokes
still reach the child (preserving the use case #8678 added), but
leave stdout/stderr as PIPE and pump them to the active terminal's
output/error streams in two daemon threads. The pump threads are
joined after p.waitFor() so all buffered output drains before the
task completes.

The active terminal is captured once on the task thread rather than
re-resolved per-write via the `System.out`/`err` proxies, otherwise a
concurrent terminal swap can route mid-pump bytes to the wrong client
(observed on the CI JDK 8 matrix; the proxy's `activeTerminal.get()`
is evaluated at every write).

Forced scala/scala3 CI to downgrade from sbt 1.12.10 to 1.12.1 (see
scala/scala3#25995).

Diagnosis credit: @mbovel in #9185.

Fixes sbt/sbt#9185.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 14:41:16 -04:00
eugene yokota 35362bba0e
[1.x] fix: Make custom-scala-org scripted test hermetic (#9260) (#9266)
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: BrianHotopp <brihoto@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 14:05:33 -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