Commit Graph

17324 Commits

Author SHA1 Message Date
Eugene Yokota ed0b16375d Update test 2025-08-09 13:58:35 -04:00
Eugene Yokota 7d00a2c51d Merge branch '1.11.x' into wip/merge-1.11.x 2025-08-09 13:47:36 -04:00
eugene yokota 09b9a97437
Merge pull request #8196 from eed3si9n/wip/hide-ivy
[2.x] refactor: Hide Ivy-related classes
2025-08-09 02:29:48 -04:00
Eugene Yokota 9e37218dcf refactor: Hide Ivy-related classes
Move Ivy-related classes to internal.
Promote IvyPaths and Credentials to core.
2025-08-09 01:52:45 -04:00
eugene yokota a4ac406186
Merge pull request #8185 from eed3si9n/wip/sync-lm
[2.x] Forward port some changes from lm
2025-08-08 03:53:53 -04:00
eugene yokota 0673821f57
Merge pull request #8193 from eed3si9n/wip/fork-parallel
[2.x] Flip testForkedParallel to true
2025-08-08 02:40:22 -04:00
Eugene Yokota 42010a317e Flip testForkedParallel to true 2025-08-08 02:06:36 -04:00
eugene yokota 424d0eb50d
Merge pull request #8191 from unkarjedy/1.11.x
[sonatype publishing] print deployment validation errors if present
2025-08-05 00:21:45 -04:00
eugene yokota bb739bafa1
Merge branch '1.11.x' into 1.11.x 2025-08-05 00:09:13 -04:00
eugene yokota 5614d0161d
Merge pull request #8192 from eed3si9n/wip/bump-sbt
[1.x] Use sbt 1.11.4
2025-08-05 00:08:56 -04:00
Eugene Yokota 39d2342d03 Use sbt 1.11.4 2025-08-04 23:47:29 -04:00
Dmitrii Naumenko b83eee4528 [sonatype publishing] print deployment validation errors if present
Before this change you had to log into the sonatype account and search for the errors there.
(https://central.sonatype.com/publishing/deployments)
This was inconvenient, especially if you don't have the admin access to the account.
2025-08-04 15:03:53 +02:00
Eugene Yokota 1186515b1a sbt 1.11.4 2025-08-04 06:16:57 -04:00
eugene yokota 5ee54ac60c
Merge pull request #8190 from eed3si9n/wip/fix-key
[1.x] Fix sonaUploadRequestTimeout
2025-08-04 04:53:57 -04:00
eugene yokota 3e21938c20
Merge pull request #8189 from eed3si9n/wip/bump-lm
[1.x] Bump to lm 1.11.3
2025-08-04 04:51:04 -04:00
Eugene Yokota 699c970065 Fix sonaUploadRequestTimeout
**Problem/Solution**
sonaUploadRequestTimeout should be a global key.
2025-08-04 04:28:53 -04:00
Eugene Yokota 545e480d14 Bump to lm 1.11.3 2025-08-04 04:10:23 -04:00
eugene yokota d267bce6dc
Merge pull request #8187 from eed3si9n/wip/bump-zinc
[2.x] Bump Zinc
2025-08-04 01:29:10 -04:00
Eugene Yokota 38606b1f22 Bump Zinc 2025-08-04 01:15:20 -04:00
eugene yokota e631b80a6a
Merge pull request #8186 from eed3si9n/wip/test-doc
[2.x] Test ScalaDoc
2025-08-04 00:06:05 -04:00
Eugene Yokota f1d2d22ff2 Test ScalaDoc 2025-08-03 23:28:56 -04:00
Roberto Tyley 20eb474043 Resolvers: clarify deprecation pointer to `sonatypeCentralSnapshots`
The current deprecation messages for `sonatypeRepo()` & `sonatypeOssRepos()` (added with https://github.com/sbt/librarymanagement/pull/517) say:

> use the following instead: resolvers += Resolver.sonatypeCentral**Snapshots**

...but following this advice can expose projects to using **snapshot** artifacts when they did not previously! This is unfortunate, as snapshots artifacts are inherently more risky, due to being mutable.

For example, invocations of `sonatypeOssRepos()` like [this](76234e013f/project/plugins.sbt (L10)):

```scala
resolvers ++= Resolver.sonatypeOssRepos("releases")
```

...should _not_ be replaced by `sonatypeCentralSnapshots()`, as, AFAIK, only non-snapshot releases would be in `sonatypeOssRepos("releases")`
2025-08-03 23:08:12 -04:00
Eugene Yokota 9e483d62ca Update jsch to 0.2.23 2025-08-03 23:00:08 -04:00
eugene yokota e9276c9143
Merge pull request #8184 from eed3si9n/wip/remove-integration-test
[2.x] Remove IntegrationTest
2025-08-03 21:31:21 -04:00
Eugene Yokota ac57fb083e Remove IntegrationTest 2025-08-03 19:50:33 -04:00
eugene yokota c8fa434eb3
Merge pull request #8183 from eed3si9n/wip/cleanup
[2.x] Remove unused code
2025-08-03 16:17:45 -04:00
Eugene Yokota 7bb55fc9fb Remove unused code 2025-08-03 16:03:00 -04:00
eugene yokota 36a4fe4af7
Merge pull request #8182 from eed3si9n/wip/merge-1.11.x
[2.x] merge 1.11.x
2025-08-03 13:45:47 -04:00
Eugene Yokota b1a3ef3743 Merge branch '1.11.x' into wip/merge-1.11.x 2025-08-02 23:13:41 -04:00
eugene yokota 7550356ef6
Merge pull request #8181 from eed3si9n/wip/test-type
[2.x] refactor: Change the test type
2025-08-02 18:26:58 -04:00
Eugene Yokota c8737b8e4f refactor: Change the test type
**Problem**
test task is typed to unit.
To distinguish test from any other tasks, we want to actually type this to something.

**Solution**
Forward TestResult to the test task.
2025-08-02 18:12:20 -04:00
eugene yokota 5c12b605eb
Merge pull request #8180 from eed3si9n/wip/wait
fix: Use promise to wait for forked test
2025-08-02 15:31:46 -04:00
Eugene Yokota 9b1e644be1 fix: Use promise to wait for forked test
**Problem**
I'm seeing NPE in some test-related tests like tests/junit:
[info] [error] java.lang.NullPointerException: Null output stream
[info] [error] 	at java.io.PrintStream.requireNonNull(PrintStream.java:79)
[info] [error] 	at java.io.PrintStream.<init>(PrintStream.java:151)
[info] [error] 	at java.io.PrintStream.<init>(PrintStream.java:135)
[info] [error] 	at sbt.internal.WorkerProxy.inputStream$lzyINIT1(WorkerExchange.scala:69)
[info] [error] 	at sbt.internal.WorkerProxy.inputStream(WorkerExchange.scala:69)
[info] [error] 	at sbt.internal.WorkerProxy.println(WorkerExchange.scala:77)
[info] [error] 	at sbt.ForkTests$.mainTestTask$$anonfun$1(ForkTests.scala:160)

This is likely coming from ProcessBuilder#run not immediately processing the passed in processIO.

**Solution**
This uses Promise to wait for the processIO to be processed.
2025-08-02 15:14:22 -04:00
eugene yokota a8cd83a4f1
Merge pull request #8179 from xuwei-k/Scala-3-7-2 2025-07-31 20:27:27 -04:00
xuwei-k 5581f5fd1a Scala 3.7.2 2025-07-30 09:55:46 +09:00
eugene yokota f284e809d4
Merge pull request #8170 from eed3si9n/wip/worker2
[2.x] Implement worker + forked test
2025-07-06 13:31:26 -05:00
Eugene Yokota 2293bddfef sbt 1.11.3 2025-07-05 15:17:39 -05:00
eugene yokota 0558c56bd1
Merge pull request #8171 from guizmaii/sonaRelease_timeout
[1.x] Allow users to configure the timeout when publishing to the Maven Central repo
2025-07-05 00:58:56 -04:00
Jules Ivanic 8c0010a086
Review: the new configurable request timeout value should be `10.minutes` and should only be used for upload 2025-07-04 16:40:52 +04:00
Eugene Yokota b247e2620f Reimplement test agent as a worker command
This sends JSON-RPC over stdin as opposed to using ObjectStream over socket.
2025-07-04 01:28:56 -04:00
Jules Ivanic 084ca08f34
Allow users to configure the timeout when publishing to the Maven Central repo 2025-07-02 13:53:50 +04:00
Eugene Yokota eb74554ec1 Worker
This implements plain run for worker for testing.
2025-06-30 02:44:36 -04:00
eugene yokota c3baa55668
Merge pull request #8169 from eed3si9n/wip/jdk8
ci: Run some CI on JDK 8
2025-06-28 20:21:41 -04:00
Eugene Yokota bf098ef911 Use Caffeine 2.8.5 for JDK 8 2025-06-28 20:01:18 -04:00
Eugene Yokota 6a5e32efb4 Run some CI on JDK 8 2025-06-28 18:36:55 -04:00
eugene yokota 3342752e6b
Merge pull request #8168 from Duhemm/mduhem/name-dash
Support minus sign in project names
2025-06-26 21:37:25 -04:00
Martin Duhem 79dbcd2ff4
Support minus sign in project names
Previously, sbt would crash when attempting to load a build where
projects had minus signs (`-`) in their name.

For instance, when trying to load a project defined like this:

    lazy val `my-project` = project

After compilation, this definition looks somewhat like this

    val my$minusproject$lzy1 = ...

sbt was attempting to retrieve the original definition (without the $lzy
suffix) by taking the mangled name up to the first `$`. Unfortunately,
this approach does not work when the name includes special characters
like a minus sign, because these will be prefixed with `$` as well. In
the current example, sbt would then try to find the member named `my`,
fail, and crash.

This patch fixes the issue by using the "underlying" name, which is the
name without the additional information.
2025-06-26 10:58:11 +02:00
eugene yokota 1a06f29d0b
Merge pull request #8161 from eed3si9n/wip/cached-by-default
[2.x] Default to cached task
2025-06-21 03:39:32 -04:00
Eugene Yokota 6a7b56a645 Default to cached task
This flips the default `:=` operation to the cached task.
To opt out of the cache, use `Def.uncached(...)` or
mark the key with `@cacheLevel(include = Array.empty)`
2025-06-21 08:54:51 +09:00
eugene yokota f37aea07b2
Merge pull request #8167 from unkarjedy/1.11.x
fix: do not treat values "1.x" of "pluginCrossBuild/sbtBinaryVersion" as sbt 2 (fixes #8166)
2025-06-19 17:10:22 -04:00