Commit Graph

10392 Commits

Author SHA1 Message Date
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 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 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
Eugene Yokota 8f5759e48d Cross build to Scala 2.13 2021-01-10 20:24:05 -05:00
Eugene Yokota f8c158291d Work around Scala parallel collections situation
Ref https://github.com/scala/scala-parallel-collections/issues/22

Parallel collection got split off without source-compatible library, so apparently we need to roll our own compat hack, which causes import not used, so it needs to be paired with silencer.
2021-01-10 18:02:18 -05:00
eugene yokota cb4c1e7100
Merge pull request #6246 from eed3si9n/wip/2.13-pre1
Port XMainConfiguration to Java
2021-01-10 16:08:02 -05:00
Eugene Yokota 2f392ac264 don't enable SemanticDB on CI
Don't enable SemanticDB on CI for now since it doesn't support 2.10.
2021-01-10 15:26:26 -05:00
Eugene Yokota a6d03c819c Backtick the unicode letters in method 2021-01-10 14:21:50 -05:00
Eugene Yokota ab402543d3 Replace the unicode arrows 2021-01-10 14:20:43 -05:00
Eugene Yokota dacffb5095 sbt 1.4.6 and some Metals settings 2021-01-10 14:18:22 -05:00
Eugene Yokota 6d2a516df5 Port XMainConfiguration to Java
The bytecode generated by 2.13 compiler contains scala.runtime.BoxedUnit in the constant pool. To avoid referencing scala-library, port XMainConfiguration to Java.
2021-01-10 14:17:26 -05:00
eugene yokota d687cf11ff
Merge pull request #6234 from adpi2/scala3doc
Add support for Scala3doc
2021-01-04 17:03:00 -05:00
Adrien Piquerez 8f5c222a0c Introduce tastyFiles task 2021-01-04 18:43:49 +01:00
Adrien Piquerez 06292cbcd4 Add scripted scala3-doc 2021-01-04 10:01:34 +01:00
Adrien Piquerez ab345e0a71 Adapt sources and scalacOptions for scala3doc 2021-01-04 10:01:34 +01:00
Adrien Piquerez 5f4197cf2e Use scala-doc-tool config for scala3doc 2021-01-04 10:01:34 +01:00