Commit Graph

1517 Commits

Author SHA1 Message Date
Domantas Petrauskas bf8e92be74
Fix VM argument passing by .sbtopts file and JAVA_TOOL_OPTIONS environmental variable (#7393)
Fixes #7387

* Fix VM argument passing by .sbtopts file and JAVA_TOOL_OPTIONS environmental variable, improve launcher script integration test setup
* Fix sbt process not exiting in launcher test for --sbt-version
* Fix JAVA_TOOL_OPTIONS in launcher for linux/mac
2023-10-06 12:31:27 -04:00
Eugene Yokota ef8652f93a sbt 1.9.6 2023-09-15 11:57:17 -04:00
Eugene Yokota c532d7e69f sbt 1.9.5 2023-09-14 00:56:37 -04:00
Eugene Yokota cdaae3bfde sbt 1.9.4 2023-08-24 20:55:50 -04:00
Artūras Šlajus f8a041f47e
Update sbt launcher script
Fix `sbt_script` lookup by replacing all spaces with `%20` (not only the first one) in the path.
2023-08-02 16:30:40 +03:00
Eugene Yokota e1ffc2af08 sbt 1.9.3 2023-07-24 01:38:07 -04:00
Eugene Yokota 5f6eb1b2ec sbt 1.9.2 2023-07-09 22:06:17 -04:00
Eugene Yokota 4b0b929838 sbt 1.9.1 2023-06-26 00:13:03 -04:00
Matthias Kurz 7256fb2725
sbtn 1.9.0 2023-06-06 17:12:41 +02:00
Eugene Yokota 2d7db22785 sbt 1.9.0 2023-06-02 05:40:19 -04:00
Eugene Yokota b5c3c4836f sbt 1.9.0-RC3 2023-05-15 04:40:20 -04:00
Eugene Yokota 26917d7de4 1.9.0-RC1 2023-05-01 01:39:32 -04:00
Liang Yan 80fe184273 Update usage info in sbt for java-home
Signed-off-by: Liang Yan <ckgppl_yan@sina.cn>
2023-04-27 07:53:45 +08:00
Anton Sviridov 60236f3b34
Remove spurious whitespace in the launcher script
It causes an error in (at least) fish shell: "sbt: line 174: local: `=': not a valid identifier"
2023-01-21 09:25:55 +00:00
Eugene Yokota b0b7705739 Fixes Debian 11 compat
Fixes https://github.com/sbt/sbt/issues/7118

Problem
-------
sbtn 1.8.1 was built using ubuntu-latest, which meant picking up newer
glibc.

Solution
--------
This downgraded the ubuntu machine to build sbtn.
2023-01-04 17:19:29 -05:00
Matthias Kurz ac638a764d
Use latest sbtn 2023-01-03 16:02:18 +01:00
Matthias Kurz 8f4841de92
Define default arch variable 2023-01-03 12:41:50 +01:00
Eugene Yokota 0a3e3aad98 Add sbtn for aarch64 support 2023-01-03 00:39:17 -05:00
Eugene Yokota 09e06c45f0 sbt 1.8.0 2022-11-10 16:30:41 -05:00
Eugene Yokota f974cd3bab sbt 1.8.0-RC1 2022-11-06 23:25:22 -05:00
Eugene Yokota 38125c5347 sbt 1.7.1 2022-07-11 23:43:06 -04:00
Eugene Yokota 79ea2bdaf2 sbtn 1.7.0 2022-07-10 15:43:25 -04:00
Eugene Yokota 4f38bcbd03 sbt 1.7.0 2022-07-10 15:21:21 -04:00
Eugene Yokota d1ea1f27e6 1.7.0-RC2 2022-07-02 19:59:55 -04:00
Eugene Yokota 498493599f 1.7.0-RC1 2022-06-27 04:08:31 -04:00
Eugene Yokota ed022a70ac sbt 1.6.2 2022-01-31 23:25:20 -05:00
Eugene Yokota f5fb537c6d sbt 1.6.1 2022-01-31 16:23:00 -05:00
Amina Adewusi a3610377d4 Remove scalacoption -S-X
Fixes https://github.com/sbt/sbt/issues/6785.
2022-01-21 14:51:11 +00:00
Eugene Yokota 43088834d2 sbt 1.6.0 2021-12-26 13:44:22 -05:00
Eugene Yokota df46c08051 sbt 1.6.0-RC2 2021-12-18 18:11:10 -05:00
Eugene Yokota daa57c4e1c sbt 1.6.0-RC1 2021-11-29 12:49:43 -05:00
Eugene Yokota 7d429c6724 --no-server mode
Fixes #6530
Ref #6101

Problem
-------
Although having sbt server up by default is beneficial to well-tested
platforms like macOS, on less tested setups various native and/or
native-adjacent techniques we use could end up causing instability.

Solution
--------
This adds `--no-server` as a quick way of telling sbt not to start up
the sbt server or create virtual terminal.
2021-11-27 20:20:42 -05:00
Eric Peters 9516e10dbe [#6696] Add shutdownall to sbt runner to shutdown all sbt-launch processes 2021-10-21 10:42:42 -07:00
Eugene Yokota 98a65b124e Bump the builtin_sbt_version to 1.5.5 2021-09-19 20:14:44 -04:00
eugene yokota 5532af17c7
Merge pull request #6629 from er1c/add-sbt-cache-arg
Add --sbt-cache argument and update localCacheDirectory key description
2021-09-19 14:02:34 -04:00
Daniel Darabos 41c4bdfef1 Fix for realpathish /root returning //root. 2021-08-28 15:53:39 +02:00
Eric Peters 4dcae2cb73 Add --sbt-cache argument and update localCacheDirectory key description 2021-08-21 07:35:09 -07:00
Adrien Piquerez 966633aa81 Fix duplicated -Dsbt.script 2021-07-22 09:17:22 +02:00
Adrien Piquerez c9ca2d4afa Use `-Dsbt.script` to start sbt server
In order to start the sbt server we must use the sbt script because
it is the only way to load the .sbtopts and the .jvmopts file properly.

To do so the sbt script can pass a -Dsbt.script prop to the java server.
It is used in the NetworkClient to start the server, and it is replicated
in the BuildServerConnection file (.bsp/sbt.json).
2021-07-12 14:20:17 +02:00
Eugene Yokota eec3c32cc8 sbt 1.5.4 2021-06-13 23:34:18 -04:00
Eugene Yokota 70a50e5c54 sbt 1.5.3 2021-05-31 23:15:07 -04:00
Eugene Yokota 90b938e480 Implement sbtn downloading 2021-05-17 16:50:54 -04:00
Eugene Yokota b50a3ff0fe sbt 1.5.2 2021-05-09 20:26:59 -04:00
eugene yokota e1766d9a3d
Merge pull request #6500 from Nirvikalpa108/correct-client-arg
make -client the same as --client
2021-05-07 14:48:37 -04:00
Amina Adewusi f12b0baef0 make -client the same as --client
The problem was that -client was different from --client, which
makes for a confusing user experience. So, this change makes
them the same and re-names -client to --java-client. The value
of this is that hopefully -client and --client being the same
feels more logical to users.
2021-05-07 16:07:42 +01:00
Regis Desgroppes b8b10cdaa9 Remove trailing closing braces
Let me apologize for this typo in #6483.
2021-05-03 16:31:37 +02:00
Regis Desgroppes 45d59ab259 sbt script: Favor java's `user.home` over `$HOME`
JVM powered applications may be given an alternate home by means of the
`user.home` system property, which is handy for managing caches in CI
(the property may be set by different means, including environment
variables such as `JAVA_TOOL_OPTIONS` or `_JAVA_OPTIONS`).

Alas, this doesn't fully work when the `sbt` script downloads the
launcher jar to `$HOME`.

The present change consists in retrieving the value of this property by
means of a `findProperty` function extracted from the existing
`getPreloaded` one (adapted accordingly).

No java process get spawned here.
2021-05-02 22:32:35 +02:00
Eugene Yokota 43b2f1eb30 sbt 1.5.1 2021-04-25 22:16:01 -04:00
Eugene Yokota eaab122576 Support alternative sbt-launch repo
Problem
-------
Not everyone has direct access to Maven Central.

Solution
--------
Provide an env variable to override the base URL for sbt launcher.
2021-04-22 23:42:46 -04:00
Eugene Yokota 42464e095f Implement sbt-launch.jar download 2021-04-19 23:43:15 -04:00