Commit Graph

12440 Commits

Author SHA1 Message Date
Eugene Yokota 1a50aa32f2 sbt 1.12.2 2026-02-04 00:23:22 -05:00
eugene yokota 92a4af4f97
[1.x] Bump to sbtn 1.12.1 (#8684) 2026-02-03 21:39:44 -05:00
eugene yokota d29e096a37
[1.x] fix: Handle paths with parentheses in sbt.bat on Windows (#8656) (#8682)
Windows CMD interprets parentheses as special syntax for command grouping.
When the project directory path contains parentheses (e.g., in username),
the batch script fails with ') was unexpected at this time.' error.

This fix stores the current directory in a variable using delayed expansion
(!CURRENT_DIR!) instead of using %CD% directly, which properly handles
paths containing parentheses and other special characters.

Fixes #8644
2026-02-03 00:30:29 -05:00
eugene yokota 2380082bcc
[1.x] Use JProcess for interactive forking (#8678)
**Problem/Solution**
For forking that require both input and output,
use a Java process instead of the Scala process.
2026-02-02 11:03:50 -05:00
Eugene Yokota 6e974bb283 sbt 1.12.1 2026-01-26 06:01:43 -05:00
eugene yokota 579e31752e
[1.x] fix: Fix scala-reflect not found problem (#8632) (#8633)
**Problem**
We enforce same-version policy for scala-reflect in Scala 2.13.
However due to sandwich dependency, the graph can bump
scala-library to 3.8.1, which is missing scala-reflect counterpart.

**Solution**
Drop the same-version policy.
2026-01-26 05:32:20 -05:00
eugene yokota 08ab372fa6
Merge pull request #8593 from calm329/fix/8357-transitive-update-invalidation-1.x
[1.x] fix: Invalidate update cache across commands when dependencies change
2026-01-20 18:00:48 -05:00
calm329 f5f7015d93 fix: Update cache-update test for new UpdateInputs type 2026-01-20 14:35:47 -08:00
calm329 16cfc66152 fix: Invalidate update cache across commands when dependencies change 2026-01-20 14:18:05 -08:00
azdrojowa123 16cbaef475
[1.x] Fix missing `project` directory (#8583)
* create `project` directory if extra sbt files are added to the meta-build #8570
2026-01-20 10:03:51 -05:00
eugene yokota d54989915b
Merge pull request #8571 from eed3si9n/bport/8566
[1.x] Backport runner script changes
2026-01-17 18:01:30 -05:00
E.G b4e3845867 fix: Handle -X JVM options on command line (fixes #5742) (#8566)
Previously, passing JVM options like -Xmx1G directly on the command
line would result in an error:

  sbt -v -Xmx1G
  [error] Expected ';'
  [error] -Xmx1G
  [error]       ^

This was because -X options were being passed to sbt as commands
instead of being recognized as JVM arguments.

Changes:
- Added handling for -X options in sbt.bat to pass them to the JVM
- Updated help text to document this feature
- Added integration tests for the new functionality
2026-01-17 17:46:55 -05:00
MkDev11 c50f5b7fd1 [2.x] fix: Fix sbt new argument parsing on Windows (#8509)
Only recombine split -- arguments after new/init command.

Fixes #7507
2026-01-17 17:46:33 -05:00
MkDev11 e756c6dc88 [2.x] fix: Skip native client for sbt new/init commands (#8512)
Fixes #7497
2026-01-17 17:46:09 -05:00
SID 1fd24af87e
[1.x] bport: Fix sbtopts files priority in sbt launch script (#8520)
- Change from prepend to append for machine/dist sbtopts
- Change project .sbtopts from prepend to append so it appears last
- Project-level .sbtopts now correctly overrides machine-wide configs
- Add integration tests to verify sbtopts priority order
- Extend testOutput to support dist and machine sbtopts testing
- Copy staging directory to temp location to avoid modifying staging dir
2026-01-13 14:43:22 -05:00
eugene yokota b352eb1ff6
Merge pull request #8493 from eed3si9n/bport/launcher-package
[1.x] bport: Upgrade launcher-package to sbt 1.10.7
2026-01-11 22:56:33 -05:00
eugene yokota 622add0e61 [2.x] ci: Integrate launcher package (#8485)
**Problem/Solution**
This is a follow up to launcher package migrating to sbt 1.x.
This joins the launcher package into the main build.
2026-01-11 22:30:50 -05:00
Eugene Yokota 5bdb08ea23 ci: Use slash syntax in build.sbt 2026-01-11 21:43:49 -05:00
MkDev11 08469d8b8c [2.x] fix: Upgrade launcher-package to sbt 1.10.7 and replace dispatch-http (#8465)
Fixes #7826

Changes:
- Upgrade sbt version from 0.13.18 to 1.10.7 in launcher-package/project/build.properties
- Remove dead dispatch-http 0.8.10 dependency from plugins.sbt
- Update sbt-native-packager from 1.7.6 to 1.10.4 (com.github.sbt)
- Update sbt-pgp from 2.1.2 to 2.3.1
- Replace all dispatch.classic._ HTTP calls with Java URL.openStream()

The dispatch-http library is dead and doesn't support sbt 1.x. This change
uses standard Java networking APIs for HTTP downloads, eliminating the
dependency on outdated libraries.

All HTTP download operations now use:
- java.net.URL.openConnection()
- InputStream with buffered reading
- Proper resource cleanup with try-finally blocks

- Removes the sbt-export-repo plugin dependency
- Defines exportRepo and exportRepoDirectory settings locally
- Removes ExportRepoPlugin from dist project
- Fixes exportRepo task to not reference itself

* fix: Update PackageSignerPlugin.scala for sbt 1.x compatibility
- Use withExtension instead of copy(extension = ...) for Artifact
- Update Classpaths.publishConfig to use sbt 1.x signature with all required parameters
- Use new slash syntax for scoped keys (pgpSigner / skip instead of skip in pgpSigner)

* fix: Use computed status instead of status key in PackageSignerPlugin

* fix: Use withRevision instead of copy for ModuleID in build.sbt

- Add scala.sys.process._ import for shell command execution (! method)
- Fix resolvers setting to use new slash syntax and proper Option handling
- Fix publish/publishLocal to use {} instead of () to avoid deprecation warning
- Fix Classpaths.publishTask to use variant without delivery key (deprecated since 1.1.1)
- Add scala.sys.process._ import for shell command execution
- Fix publish/publishLocal to use {} instead of ()
- Remove problematic resolvers setting that caused task/setting dependency issues
- Use IvyActions.publish directly instead of deprecated Classpaths.publishTask
- Fix ModuleID.copy to use withRevision
- Fix Artifact.copy to use withExtension
- Use computed status value instead of status key

Build now compiles successfully with sbt 1.10.7.
2026-01-11 21:39:44 -05:00
Eugene Yokota fcb4e0e43c sbt 1.12.0 2026-01-04 21:18:03 -05:00
eugene yokota 6f50a1efca
Merge pull request #8434 from eed3si9n/wip/bump
[1.x] Zinc 1.12.0
2026-01-04 21:04:04 -05:00
Eugene Yokota 0e546f0b35 [1.x] Zinc 1.12.0 2026-01-04 20:50:33 -05:00
eugene yokota 2e8e03eb0e
Merge pull request #8432 from eed3si9n/bport/scala-version
[1.x] Show warnings when scalaVersion is missing
2026-01-04 15:34:43 -05:00
Eugene Yokota 0a15069e83 Show warnings when scalaVersion is missing
**Problem**
There's a disconnect between what is perceived to be the current
Scala version, and what sbt uses internally, and thus what it
chooses to be the default scalaVersion.

**Solution**
This displays a warning if scalaVersion setting is missing.
2026-01-04 15:23:05 -05:00
Eugene Yokota 67e52c3006 sbt 1.12.0-RC1 2025-12-19 23:46:35 -05:00
eugene yokota b926c84c1d
Merge pull request #8425 from eed3si9n/wip/bump-lm
[1.x] Update to lm 1.12.0-M2
2025-12-19 02:45:19 -05:00
Eugene Yokota fb37b9c66b [1.x] Update to lm 1.12.0-M2 2025-12-19 02:02:16 -05:00
eugene yokota b536bc037d
Merge pull request #8359 from eed3si9n/wip/dependency-tree
[1.x] Use internal config for dependency tree (for Provided)
2025-12-19 01:08:44 -05:00
eugene yokota 2fad041c5f
Merge pull request #8424 from eed3si9n/wip/bump-zinc
[1.x] Update to Zinc 1.12.0-M2
2025-12-19 00:47:17 -05:00
Eugene Yokota 7bb5180f9e [1.x] Update to 1.12.0-M2 2025-12-19 00:23:07 -05:00
eugene yokota 03d57c5803
Merge pull request #8413 from sideeffffect/1.11.x-JDK_JAVA_OPTIONS
[1.x] Handle JDK_JAVA_OPTIONS
2025-12-17 18:09:27 -05:00
eugene yokota d3bd93e2f2
Merge pull request #8415 from azdrojowa123/1.12.x-build-target-sources
Return build targets sources from `buildTarget/dependencySources` request
2025-12-14 15:43:13 -05:00
Aleksandra Zdrojowa 14f1839647 return build targets sources from `buildTarget/dependencySources` request #8403 2025-12-14 13:35:25 +01:00
Ondra Pelech 527989ee10 fix 2025-12-12 16:35:00 +01:00
Ondra Pelech d48895df85 Handle JDK_JAVA_OPTIONS 2025-12-12 15:44:25 +01:00
eugene yokota 9d62f5e940
Merge pull request #8407 from xuwei-k/scala-2-12-21
[1.x] Scala 2.12.21
2025-12-09 04:51:32 -05:00
xuwei-k 70960744e7 Scala 2.12.21 2025-12-09 17:28:03 +09:00
eugene yokota c2d0188968
Merge pull request #8406 from eed3si9n/wip/bump-launcher
[1.x] Update to launcher 1.5.2
2025-12-09 00:12:59 -05:00
Eugene Yokota e8e44aab10 launcher 1.5.2 2025-12-08 23:51:39 -05:00
eugene yokota d4ad01e7ba
Merge pull request #8395 from mkurz/upgrade_scala
[1.12.x] Scala 2.13.18
2025-12-01 12:13:08 -05:00
Matthias Kurz 724027f8ad
Scala 2.13.18 2025-12-01 14:50:38 +01:00
eugene yokota 90a209edb5
Merge pull request #8387 from hamzaremmal/i8386
[1.x] do not assume scala3_library to be a jar
2025-11-25 00:25:37 -05:00
Hamza Remmal 531c5d18db
do not assume scala3_library to be a jar 2025-11-24 22:01:33 +01:00
dependabot[bot] ee03e7606e [1.x] Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [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/v5...v6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 14:14:23 +09:00
eugene yokota dabfb24023
Merge pull request #8368 from eed3si9n/wip/parser
[1.x] fix: Parse with -Xsource:3
2025-11-15 01:47:15 -05:00
Eugene Yokota 6daa99b2db fix: Parse with -Xsource:3
**Problem**
On IntelliJ the users are getting the hint to upgrade to -Xsource:3
style, however the supported syntax do not parse.

**Solution**
This adds -Xsource:3 to the parser. The metabuild compilation uses
-Xsource:3 since sbt 1.6.0.
2025-11-14 00:51:28 -05:00
Eugene Yokota 1254bd33e5 Use internal config for dependency tree (for Provided)
**Problem**
dependency-tree currently doesn't include Provided configuration,
because technically it isn't part of the Compile configuration,
however, Provided does become part of the Compile classpath during compilation.

**Solution**
This changes the implementation to use the internal configuration,
e.g. CompileInternal, which includes the auxilary configurations.

There's a tradeoff here since it means that we lose the tree view of
the platonic Compile configuration.
2025-11-08 14:33:47 -05:00
eugene yokota c637805538
Merge pull request #8353 from sbt/dependabot/github_actions/1.12.x/coursier/cache-action-7
[1.x] Bump coursier/cache-action from 6 to 7
2025-11-03 17:49:37 -05:00
dependabot[bot] ce117c5584
[1.x] Bump coursier/cache-action from 6 to 7
Bumps [coursier/cache-action](https://github.com/coursier/cache-action) from 6 to 7.
- [Release notes](https://github.com/coursier/cache-action/releases)
- [Commits](https://github.com/coursier/cache-action/compare/v6...v7)

---
updated-dependencies:
- dependency-name: coursier/cache-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-03 19:53:22 +00:00
eugene yokota 272c2d57dc
Merge pull request #8355 from sbt/eed3si9n-patch-1
[1.x] ci: Update checkout references to 1.12.x
2025-11-03 14:51:44 -05:00