Commit Graph

11235 Commits

Author SHA1 Message Date
Eric Meisel b2363db3d6
Fix SBT Warn on slow HostName
Turns out the snippet provided in the warning was incorrect and did not resolve the issue properly. Adding `.local` to the end of the HostName will resolve the slowness.

See the 2nd answer here: 

https://apple.stackexchange.com/questions/175320/why-is-my-hostname-resolution-taking-so-long
2021-02-12 15:20:35 -06:00
eugene yokota 8d8a376757
Merge pull request #6291 from eed3si9n/wip/bump_scala2_12_13
Scala 2.12.13
2021-02-06 23:51:19 -05:00
Eugene Yokota 68bd693178 ResponseTest 2021-02-06 23:24:09 -05:00
Eugene Yokota a25d9e7114 dependency-graph fixes 2021-02-06 22:58:12 -05:00
Eugene Yokota 51c123b506 Fix tests/scala-instance-classloader 2021-02-06 22:38:48 -05:00
Eugene Yokota 2fb5b372d5 Fix actions/cross-advanced 2021-02-06 22:36:47 -05:00
Eugene Yokota 587d821828 Override filter method on the FilteringReporter 2021-02-06 22:32:14 -05:00
Eugene Yokota 22d12f6618 Use nowarn annotation 2021-02-06 22:31:47 -05:00
Brice Jaglin 145966e3f3 better support of custom configurations in SemanticdbPlugin
Second take at https://github.com/sbt/sbt/issues/5886, which fixed the
problem for Test specifically but not for custom configurations.

* Any child of Compile (like Custom in the scripted) had to use
  testSettings, whether they were related to testing or not
* Custom configurations with grand parents (like SystemTest in the
  scripted) would get duplicated scalacOptions no matter what they used
2021-02-06 23:52:55 +01:00
Eugene Yokota 61056e17b3 Fix GitHub Actions 2021-02-01 01:26:36 -05:00
Eugene Yokota 5ebb3da150 Override warning + error method
Scala compiler changed the implementation of reporter in 2.12.13 such that overriding `info0` no longer increments the error count in the delegating reporter.
See https://github.com/scala/bug/issues/12317 for details.
2021-02-01 01:20:20 -05:00
Eugene Yokota 61a077e3a6 Scala 2.12.13 2021-01-31 12:59:31 -05:00
Eugene Yokota 635f05f2f3 sbtn 1.4.7 2021-01-31 00:43:23 -05:00
eugene yokota 0a6e5c3116
Merge pull request #6284 from eed3si9n/wip/deprecate
Deprecate externalPom
2021-01-25 00:35:42 -05:00
Eugene Yokota 1275051974 Deprecate externalPom
Ref #5493
2021-01-24 23:36:02 -05:00
eugene yokota 83012a9644
Merge pull request #6237 from eed3si9n/wip/package
packageTimestamp setting
2021-01-24 23:24:09 -05:00
Eugene Yokota 628d908a5c packageTimestamp setting
Fixes https://github.com/sbt/sbt/issues/6235

In sbt 1.4.0 (https://github.com/sbt/sbt/pull/5344) we started wiping out the timestamps in JAR
to make the builds more repeatable.
This had an unintended consequence of breaking Play's last-modified response header (https://github.com/playframework/playframework/issues/10572).

This adds a global setting called `packageTimestamp`, which is
initialized as follows:

```scala
packageTimestamp :== Package.defaultTimestamp,
```

Here the `Package.defaultTimestamp` would pick either the value from the
`SOURCE_DATE_EPOCH` environment variable or 2010-01-01.

To opt out of this default, the user can use:

```scala
ThisBuild / packageTimestamp := Package.keepTimestamps

// or

ThisBuild / packageTimestamp := Package.gitCommitDateTimestamp
```

Before (sbt 1.4.6)
------------------

```
$ ll example
total 32
-rw-r--r--  1 eed3si9n  wheel   901 Jan  1  1970 Greeting.class
-rw-r--r--  1 eed3si9n  wheel  3079 Jan  1  1970 Hello$.class
-rw-r--r--  1 eed3si9n  wheel   738 Jan  1  1970 Hello$delayedInit$body.class
-rw-r--r--  1 eed3si9n  wheel   875 Jan  1  1970 Hello.class
```

After (using Package.gitCommitDateTimestamp)
--------------------------------------------

```
$ unzip -v target/scala-2.13/root_2.13-0.1.0-SNAPSHOT.jar
Archive:  target/scala-2.13/root_2.13-0.1.0-SNAPSHOT.jar
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
     288  Defl:N      136  53% 01-25-2021 03:09 888682a9  META-INF/MANIFEST.MF
       0  Stored        0   0% 01-25-2021 03:09 00000000  example/
     901  Defl:N      601  33% 01-25-2021 03:09 3543f377  example/Greeting.class
    3079  Defl:N     1279  59% 01-25-2021 03:09 848b4386  example/Hello$.class
     738  Defl:N      464  37% 01-25-2021 03:09 571f4288  example/Hello$delayedInit$body.class
     875  Defl:N      594  32% 01-25-2021 03:09 ad295259  example/Hello.class
--------          -------  ---                            -------
    5881             3074  48%                            6 files
```
2021-01-24 22:14:31 -05:00
eugene yokota feaea5d943
Merge pull request #6265 from adpi2/scala3-doc
[1.5.0-M1] Improve error report for scala3doc missing
2021-01-24 21:36:26 -05:00
eugene yokota 43409fcc6f
Update main/src/main/scala/sbt/Defaults.scala 2021-01-24 18:02:50 -05:00
eugene yokota 01b5cb1bf4
Merge pull request #6283 from eed3si9n/wip/tab_completion
Fix configuration identifier completion
2021-01-24 12:32:20 -05:00
Eugene Yokota c5d65fe3c7 Cache configuration parser 2021-01-23 22:27:25 -05:00
Eugene Yokota 5deb1f5994 Fix configuration identifier completion
Fixes https://github.com/sbt/sbt/issues/6282
2021-01-23 22:15:06 -05:00
eugene yokota 151c170409
Merge pull request #6278 from cchepelov/fix/adopt-coursier-2.0.9
bump lm-coursier-shaded to 2.0.6 (includes coursier 2.0.9)
2021-01-22 14:04:18 -05:00
Cyrille Chepelov 2fdc6a6212 bump lm-coursier-shaded to 2.0.6 (includes coursier 2.0.9) 2021-01-22 17:13:42 +01:00
eugene yokota cc87ae2635
Merge pull request #6276 from fommil/emacs
GNU Emacs support for sbtn and sbt --client
2021-01-21 16:38:39 -05:00
Sam Halliday 88baafa034 nohup the server from GNU Emacs 2021-01-21 10:51:00 +00:00
Sam Halliday bb8b097f5a git ignore .bsp 2021-01-21 10:50:57 +00:00
Sam Halliday 816208f081 Terminal support for GNU Emacs 2021-01-21 10:50:57 +00:00
eugene yokota c0e8267756
Merge pull request #6266 from melezov/fix-exitcode-calc
Fix ExitCode calc on StashOnFailure
2021-01-19 10:10:41 -05:00
Marko Elezovic 79645dfee7 Fix ExitCode calc on StashOnFailure
Previous sbt.Exec != String match would never fail
2021-01-19 11:37:00 +01:00
Adrien Piquerez 67689e0bbd Improve error report for scala3doc missing 2021-01-18 20:20:03 +01:00
eugene yokota 600942303f
Merge pull request #6263 from eed3si9n/wip/bump
IO 1.5.0-M1, LM 1.5.0-M4, Zinc 1.5.0-M3
2021-01-18 00:22:46 -05:00
Eugene Yokota d177b54967 IO 1.5.0-M1, LM 1.5.0-M4, Zinc 1.5.0-M3 2021-01-18 00:00:45 -05:00
eugene yokota b05971f941
Merge pull request #347 from flomebul/patch-1
Update sbt for cygwin environment support
2021-01-17 15:05:27 -05:00
Luc Henninger 4c9b315831
Update sbt for cygwin environment support
See issue #6260
2021-01-17 19:18:09 +01:00
eugene yokota 4b71de0098
Merge pull request #6248 from adpi2/bsp-launch-jar
Add --sbt-launch-jar in bsp connection details
2021-01-16 13:00:46 -05:00
eugene yokota 932deaeb6f
Merge pull request #6259 from eed3si9n/wip/hedgehog
hedgehog-sbt 0.6.1
2021-01-16 11:24:37 -05:00
eugene yokota 5c24c0ecab
Merge branch 'develop' into bsp-launch-jar 2021-01-16 09:34:03 -05:00
Eugene Yokota 98450fe743 Add half-failing tests for completions 2021-01-16 03:48:57 -05:00
Eugene Yokota e86a705b4f hedgehog-sbt 0.6.1 2021-01-16 03:48:06 -05:00
eugene yokota e441595f59
Merge pull request #6258 from eed3si9n/wip/specs
Port mutable.Specification to verify.BasicTestSuite
2021-01-16 01:44:02 -05:00
eugene yokota b7c6ebd25c
Merge pull request #6257 from eed3si9n/wip/tab_completion
Avoid the whitespace after completion
2021-01-16 00:48:10 -05:00
Eugene Yokota 1c6a5d21bb Port mutable.Specification to verify.BasicTestSuite 2021-01-16 00:47:53 -05:00
Eugene Yokota 58dfca6e27 Avoid the whitespace after completion 2021-01-15 16:43:19 -05:00
eugene yokota 508a4b4bb9
Merge pull request #6254 from takezoe/jar-reset-time
Reset ZipEntry timestamps to 2010-01-01 to prevent negative value
2021-01-14 11:59:56 -05:00
Naoki Takezoe 5ce3a174e8 Reset ZipEntry timestamps to 2010-01-01 in order to prevent negative value 2021-01-14 08:32:50 +09:00
Adrien Piquerez f4d181de22 Add --sb-launch-jar in bsp connection details 2021-01-11 14:38:02 +01:00
Adrien Piquerez 844deab78c
Merge pull request #6177 from eatkins/client-launch-jar
Add --sbt-launch-jar command line arg to client
2021-01-11 14:35:40 +01:00
Adrien Piquerez fdcfe87dbf
Merge branch 'develop' into client-launch-jar 2021-01-11 13:20:49 +01:00
eugene yokota c4c88b75e4
Merge pull request #6247 from eed3si9n/wip/2.13
Cross build to Scala 2.13
2021-01-10 21:03:44 -05:00