Commit Graph

12396 Commits

Author SHA1 Message Date
Roberto Tyley d97373454f
Add `sonaDeploymentName` to `excludeLintKeys`
sbt added the `sonaDeploymentName` key with https://github.com/sbt/sbt/pull/8126, released with https://github.com/sbt/sbt/releases/tag/v1.11.0 - in use, this seems to be getting lint warnings (as introduced by https://github.com/sbt/sbt/pull/5153):

```
[warn] there's a key that's not used by any other settings/tasks:
[warn]  
[warn] * scala-collection-plus / sonaDeploymentName
[warn]   +- /home/runner/work/scala-collection-plus/scala-collection-plus/build.sbt:3
[warn]  
[warn] note: a setting might still be used by a command; to exclude a key from this `lintUnused` check
[warn] either append it to `Global / excludeLintKeys` or call .withRank(KeyRanks.Invisible) on the key
```

https://github.com/rtyley/scala-collection-plus/actions/runs/15326291872/job/43121748535#step:6:19

...https://github.com/sbt/sbt/pull/5153 does say that "notable exceptions are settings used exclusively by a command" - I _think_ that maybe `sonaDeploymentName` is only used by the commands `sonaRelease` & `sonaUpload`, so it's necessary to add it to `excludeLintKeys`?
2025-05-29 16:18:28 +01:00
Eugene Yokota aaaecfcef6 sbt 1.11.0 2025-05-24 02:38:08 -04:00
eugene yokota a4d078ebf7
Merge pull request #8136 from eed3si9n/wip/bump-lm
[1.x] lm 1.11.0
2025-05-24 02:09:42 -04:00
Eugene Yokota eaf12caaa3 lm 1.11.0 2025-05-24 01:53:48 -04:00
eugene yokota db673a9faf
Merge pull request #8132 from eed3si9n/wip/snapshot2
[1.x] fail on sonaRelease if the version is SNAPSHOT
2025-05-22 12:48:58 -04:00
Eugene Yokota 9e7a0fa136 fail on sonaRelease if the version is SNAPSHOT 2025-05-21 00:26:51 -04:00
eugene yokota 8a7d84aa08
Merge pull request #8130 from eed3si9n/wip/querystring
[1.x] fix: Fix Sonatype publishing
2025-05-18 15:39:24 -04:00
Eugene Yokota 929b0bf525 fix: Fix Sonatype publishing
**Problem**
1. query string wasn't passed in, so sonaRelease wasn't working
2. deployment name should be human readable

**Solution**
This fixes the query string passing by hand-crafting the URL.

This also generates human readable deployment name.
2025-05-18 15:25:27 -04:00
eugene yokota ddff8eb908
Merge pull request #8129 from eed3si9n/wip/post
fix: Fix Central Portal status checking
2025-05-18 14:06:42 -04:00
Eugene Yokota ff6ea5570b fix: Fix Central Portal status checking
**Problem**
It's supposed to be POST but I'm usin g GET, which results in 500.
2025-05-18 12:51:06 -04:00
Eugene Yokota f698b7191b sbt 1.11.0-RC1 2025-05-17 16:07:20 -04:00
eugene yokota df9ed2e310
Merge pull request #8127 from eed3si9n/wip/bump-lm
[1.x] lm 1.11.0-M1
2025-05-17 15:27:38 -04:00
Eugene Yokota 7516b4088a lm 1.11.0-M1 2025-05-17 15:10:45 -04:00
eugene yokota 5a229a168b
Merge pull request #8126 from eed3si9n/wip/sonatype
[1.x] Sonatype Publish Portal support
2025-05-15 23:43:29 -04:00
Eugene Yokota 341cd9cf24 sonaBundle shouldn't aggregate 2025-05-15 22:33:43 -04:00
Eugene Yokota dc235777fe Implement environment variable support 2025-05-15 22:25:28 -04:00
Eugene Yokota d8813bc506 Sonatype Publish Portal support
**Problem**
Sonatype is sunsetting HTTP Rest endpoint OSSRH in June 2025.

**Solution**
This implements a built-in publishing mechanism.
Kudos to David Doyle who has spearheaded Sonatype Central support via sonatype-central-client etc.
2025-05-15 03:27:54 -04:00
eugene yokota 684cb483b3
Merge pull request #8117 from sbt/revert-8109-bsp-compile-status-code
Revert "fix: BSP error status code in more cases"
2025-05-10 21:44:55 -07:00
kenji yoshida 1d7871233b
Revert "fix: BSP error status code in more cases" 2025-05-11 12:59:15 +09:00
eugene yokota 25b30ff36e
Merge pull request #8109 from harpocrates/bsp-compile-status-code
fix: BSP error status code in more cases
2025-05-07 08:01:16 -07:00
Alec Theriault 5d81f2c3d1
fix: BSP error status code in more cases
Ensures that `buildTarget/compile` returns a `StatusCode.Error` instead
of a JSON-RPC error even when the compile error is buried deeper in the
`Incomplete` causes.

Fixes #8104
2025-05-07 06:16:27 -04:00
eugene yokota 978dd5779d
Merge pull request #8087 from eed3si9n/wip/test-quick-bug2
[1.x] fix: Fix incremental test with companion objects
2025-04-01 00:00:25 -04:00
Eugene Yokota 1415b2efa4 fix: Fix incremental test with companion objects [merge-skip]
**Problem**
Incremental test (aka testQuick) has a bug when companion objects
depends on others since at some point it's failing to look up relationship from Zinc analysis.

**Solution**
This fixes the lookup.
2025-03-31 22:44:57 -04:00
OlegYch baa9a919ba Reproduce testQuick + object deps bug [merge-skip]
testQuick after code change doesn't rerun the test.
This was adopted from https://github.com/OlegYch/sbt-testQuick-bug
2025-03-31 21:47:02 -04:00
Eugene Yokota 4d583fa19e Split test-quick test into two [merge-skip] 2025-03-31 21:43:04 -04:00
eugene yokota 876222e7a7
Merge pull request #8081 from eed3si9n/wip/stdout
fix: Avoid printing to stdout
2025-03-25 01:52:12 -04:00
Eugene Yokota af714b8318 fix: Avoid printing to stdout
**Problem**
The runner script prints out "copying runtime jar" etc to stdout.

**Solution**
This removes the log, and moves other logs to stderr.
2025-03-25 01:34:53 -04:00
Eugene Yokota 898d9f66d3 sbt 1.10.11 2025-03-17 01:26:22 -04:00
eugene yokota 4fe6384ce0
Merge pull request #8071 from eed3si9n/wip/windows
[1.x] fix: Fix sbt --client on Windows
2025-03-17 00:46:31 -04:00
Eugene Yokota ff4825ccff fix: Fix sbt --client on Windows
**Problem**
sbt --client doens't work on Windows because the runner script
passes itself to the server, but it's unable to launch Bash script.

**Solution**
Pass in the bat version instead on Windows.
2025-03-16 23:57:47 -04:00
eugene yokota 1b4a345406
Merge pull request #8070 from eed3si9n/wip/bump-io
[1.x] fix: Use Retry.io for compilation
2025-03-16 22:25:06 -04:00
Eugene Yokota 12d2cc8ef1 fix: Use Retry.io for compilation
**Problem**
sbt 1.10.10 still has retry problem with compilation.

**Solution**
Revert the retry logic back to the time when we only retried IOExceptions.
2025-03-16 21:43:01 -04:00
eugene yokota 75536d12a5
Merge pull request #8069 from eed3si9n/wip/update-coursier
[1.x] Update lm-coursier-shaded to 2.1.8
2025-03-16 21:15:22 -04:00
Eugene Yokota 0e1088145a Update lm-coursier-shaded to 2.1.8 2025-03-16 19:53:50 -04:00
eugene yokota 0d4c11b396
Merge pull request #8067 from eed3si9n/wip/fix-warning
[1.x] fix: Fix SIP-51 message
2025-03-16 15:37:01 -04:00
Eugene Yokota bd7bf73de5 fix: Fix SIP-51 message
**Problem**
The error message uses name, which may not match the actual project id
that the user can type into the shell.

**Solution**
Use displayBuildRelative to calculate the proper subproject id.
2025-03-16 14:58:23 -04:00
eugene yokota 9c08aea5fc
Merge pull request #8066 from eed3si9n/wip/v
[1.x] fix: Avoid creating target on sbt -V
2025-03-16 02:29:15 -04:00
Eugene Yokota 89ff2440ef fix: Avoid creating target on sbt -V
**Problem**
sbt -V tries to show both the sbt version and the runner version,
and ends up creating target directory even on a non-sbt directory.

**Solution**
If the current directory doesn't have a build, just display the runner version.
2025-03-16 02:08:33 -04:00
eugene yokota 78bffa22b6
Merge pull request #8057 from eed3si9n/wip/shutdown
[1.x] Shortcut sbtn shutdown
2025-03-05 22:06:50 -05:00
Eugene Yokota 9d4cc80a80 Shortcut sbtn shutdown
**Problem**
WHen portfile is not found, sbtn will try to start the server
even when the desired command is shutdown.

**Solution**
When the command is just shutdown, don't start the server.
2025-03-05 02:27:46 -05:00
Eugene Yokota 70a8ee4fb4 sbt 1.10.10 2025-03-04 01:01:15 -05:00
eugene yokota ce38f0a37d
Merge pull request #8054 from eed3si9n/wip/retry
[1.x] Skip retry on CompileCancelled
2025-03-03 22:57:07 -05:00
Eugene Yokota 946b54c858 Skip retry on CompileCancelled
**Problem**
When compilation fails, it's retrying 10 times
since Retry now retries on non-IOExceptions.

**Solution**
This adds CompileFailed to excluded exception list.
2025-03-03 22:19:22 -05:00
Eugene Yokota a3a72b3245 sbt 1.10.9 2025-03-03 13:06:40 -05:00
eugene yokota d3ea4c5771
Merge pull request #8052 from eed3si9n/wip/bump-zinc
Zinc 1.10.8 + sbtn 1.10.8
2025-03-03 12:37:14 -05:00
Eugene Yokota 290431bfc5 Zinc 1.10.8 + sbtn 1.10.8 2025-03-03 12:22:09 -05:00
eugene yokota 0c1fd9aff7
Merge pull request #8051 from eed3si9n/wip/revert-run-switching
[1.x] Revert run switching on 1.x
2025-03-03 11:23:33 -05:00
Eugene Yokota 5d5fe21ec5 Revert run switching on 1.x
**Problem**
client-side run apparently won't work for Scala.JS,
so forcing sbtn users to client-side run will break the Scala.JS users.

**Solution**
This reverts the client-side run on sbt 1.x, while retaining the
mechanism for sbt 2.x usages via sbtn.
Now, if `run / connectInput := true` is true, stdout will not display on sbtn.
2025-03-03 04:59:36 -05:00
eugene yokota f43030a2c2
Merge pull request #8050 from eed3si9n/wip/bump-lm
[1.x] lm 1.10.4
2025-03-03 03:05:53 -05:00
Eugene Yokota a18ed19cbc fix: Use JDK path, not JRE path
**Problem**
There are a few places where javaHome or java path is set,
using java.home system property. The problem is that it points to JRE,
not JDK, so it would break on Java compilation etc.

**Solution**
If the path ends with jre, go up one directory.
2025-03-03 02:31:44 -05:00