Commit Graph

11418 Commits

Author SHA1 Message Date
eugene yokota 4f102fc46f
Merge pull request #6691 from eed3si9n/wip/github_actions
Switch to using actions/setup-java@v2
2021-10-16 16:50:37 -04:00
Eugene Yokota 376823bf08 Use GitHub Action's branching 2021-10-16 16:27:15 -04:00
Eugene Yokota 9d9016f4cf Switch to using actions/setup-java@v2 2021-10-16 15:59:58 -04:00
eugene yokota b795b622d7
Merge pull request #6680 from er1c/mainlogging-defaultscreen-args
Update MainAppender.defaultScreen to use passed in console arg #6678
2021-10-16 13:48:08 -04:00
eugene yokota 7b899f035e
Merge pull request #6688 from xuwei-k/ignoreScalaLibrary-test
re-enable `dependency-graph` scripted tests
2021-10-11 12:05:50 -04:00
xuwei-k 9052c745b1 re-enable `dependency-graph` tests 2021-10-11 20:40:24 +09:00
eugene yokota adc217000b
Merge pull request #6673 from kxbmap/scripted-java-home
Make javaHome that forks scripted tests configurable
2021-10-05 11:08:53 -04:00
kxbmap 59f178a4c4 Make javaHome that forks scripted tests configurable
Normally scripted tests are forked using the JVM that is running sbt.
If set `scripted / javaHome`, forked using it.

```
scripted / javaHome := Some(file("/path/to/jdk-x.y.z"))
```

Or use `java++` command before scripted.

```
sbt> java++ 11!
sbt> scripted
```
2021-10-05 00:35:56 +09:00
eugene yokota 5f56fce580
Merge pull request #6684 from kxbmap/win-jdk-distributions
Add Windows Java home selectors for some distributions
2021-10-03 11:18:37 -04:00
kxbmap 24e7398b5b Add Windows Java home selectors for some distributions that provides an installer
- Eclipse Temurin
- IBM Semeru Runtimes
- Microsoft Build of OpenJDK
- Amazon Corretto
- Azul Zulu Builds of OpenJDK
- Liberica JDK
2021-10-02 16:56:12 +09:00
eugene yokota 35003a0bd7
Merge pull request #6675 from nimatrueway/fix-cycle-in-browse-tree
Handle cycles while rendering dependency tree to json
2021-09-29 23:57:51 -04:00
Eric Peters c1ed109f89 Update MainAppender.defaulScreen to use passed in console arg #6678 2021-09-29 07:39:09 -07:00
Eric Peters 804bd4b8b5 Rename internal/util-logging/src/main/scala/sbt/internal/util/MainLogging.scala to MainAppender.scala to match contents 2021-09-29 07:34:20 -07:00
Nima Taheri fcd7a3bef2 Handle cycles while rendering json dependency tree to json 2021-09-28 11:28:20 -07:00
eugene yokota c2cd9a0a71
Merge pull request #6672 from eed3si9n/wip/temurin17
Eclipse Temurin 17
2021-09-25 20:00:12 -04:00
Eugene Yokota 0c3b76cbf2 Eclipse Temurin 17 2021-09-25 19:22:20 -04:00
Eugene Yokota 98a65b124e Bump the builtin_sbt_version to 1.5.5 2021-09-19 20:14:44 -04:00
eugene yokota 6aed014678
Merge pull request #6668 from eed3si9n/wip/bump
Zinc 1.6.0-M1
2021-09-19 19:51:46 -04:00
Eugene Yokota 4370bc29ba Incremental compilation of constant folding 2021-09-19 19:51:01 -04:00
Eugene Yokota f6b993f91b Zinc 1.6.0-M1 2021-09-19 17:34:40 -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
eugene yokota ce3015a2bf
Merge pull request #6665 from eed3si9n/wip/drop_trapexit
Drop TrapExit
2021-09-19 13:25:15 -04:00
Eugene Yokota 0413727796 Drop TrapExit
Fixes https://github.com/sbt/sbt/issues/6558

Problem
-------
sbt uses SecurityManager feature of JDK to trap `sys.exit` call during
`run`-like tasks, since we emulate `run` and `console` as function calls.
JDK 17 deprecated SecurityManager and it's printing warnings.

Solution
--------
About 10 years go, `exit` was a convenient way of quitting both Scala
REPL and sbt shell. Scala 2.11 broke this by removing the `Predef.exit`.
We still need to worry about `run` potentially calling `sys.exit`
but that can be handled using fork feature.
In the long-run, it probably is better to be JDK 17 compatible.
2021-09-19 12:47:59 -04:00
eugene yokota 45d6e13163
Merge pull request #6662 from eed3si9n/wip/jdk17
JDK 17
2021-09-19 02:14:51 -04:00
Eugene Yokota 04672d3118 Mark failing scripted tests pending 2021-09-19 01:47:24 -04:00
eugene yokota 2dad7ea763
Merge pull request #6664 from eed3si9n/wip/scala_2.12.15
Bump scala version to 2.12.15
2021-09-18 19:20:15 -04:00
Eugene Yokota 6564090976 Increase timeout for progress test 2021-09-18 18:45:37 -04:00
Eugene Yokota 8b9cbb3311 Follow up on Scala 2.12.15 bump 2021-09-18 18:08:26 -04:00
Amina Adewusi 505492ed33 Add -Xsource:3 flag
Adding Scala 3 compatible mode for the compilation of build.sbt files.
2021-09-17 18:16:11 +01:00
Amina Adewusi c013d1180c Bump scala version to 2.12.15 2021-09-17 17:46:07 +01:00
Eugene Yokota e4f29d37a4 nowarn on TrapExit 2021-09-17 05:14:11 -04:00
Eugene Yokota c31f12d884 JDK 17 2021-09-17 05:02:32 -04:00
eugene yokota 8d10151731
Merge pull request #6656 from Nirvikalpa108/crossSbtVersions/6571
Fix for crossSbtVersions triggering lintBuild
2021-09-12 01:25:28 -04:00
Amina Adewusi ea67d3376b Fix for crossSbtVersions triggering lintBuild
Currently crossSbtVersions is incorrectly generating a warning that it
is an unused setting (see https://github.com/sbt/sbt/pull/5153). This
PR fixes this by adding it to the list of excluded lint keys.

Fixes #6571.
2021-09-12 04:42:01 +01:00
Adrien Piquerez 5f512d9a50
Merge pull request #6642 from hmemcpy/bsp-taskProgress
BSP: implement progress report during compilation
2021-09-11 09:20:26 +02:00
Igal Tabachnik 9986fb6eed Adding a test verifying task progress reports (task start/progress/finish) 2021-09-10 13:06:03 +03:00
Igal Tabachnik 2f589b6713 Extracting progress reporter to own class 2021-09-10 01:02:01 +03:00
Igal Tabachnik f209d0093c BSP tasks report progress during compilation 2021-09-09 23:25:06 +03:00
Adrien Piquerez d197b5b77b
Merge pull request #6638 from hmemcpy/buildTarget/cleanCache
bsp: Implementing `buildTarget/cleanCache`
2021-09-06 12:25:06 +02:00
Igal Tabachnik 8fe769c41d
Merge branch 'develop' into buildTarget/cleanCache 2021-09-06 11:40:06 +03:00
eugene yokota 384d80b208
Merge pull request #6641 from darabos/darabos-fix-double-slash
Fix for realpathish in top-level directories
2021-09-05 12:15:48 -04:00
eugene yokota 776fb8b786
Merge pull request #6649 from eed3si9n/wip/cast
Fix ClassCastException
2021-09-05 10:55:58 -04:00
Eugene Yokota 39bcfee937 Fix ClassCastException
Ref #6592
When there's an issue like timeout, currently it throws a
ClassCastException because I made some assumption about the underlying
error. This removes the unnecessary casting.
2021-09-05 01:02:37 -04:00
Daniel Darabos 41c4bdfef1 Fix for realpathish /root returning //root. 2021-08-28 15:53:39 +02:00
Igal Tabachnik 20fcab4651 Ensuring both "Rebuild Project" and "Rebuild module" work from IntelliJ 2021-08-28 13:50:12 +03:00
Igal Tabachnik a920693c96 Checking for target .class files present and absent before and after cleanCache 2021-08-27 17:46:41 +03:00
Igal Tabachnik c55880d795 Implementing `buildTarget/cleanCache` to support Rebuild operations from IntelliJ 2021-08-27 17:46:41 +03:00
Eric Peters 4dcae2cb73 Add --sbt-cache argument and update localCacheDirectory key description 2021-08-21 07:35:09 -07:00
eugene yokota a199875e1d
Merge pull request #6630 from Nirvikalpa108/timings-help-bug 2021-08-21 06:39:39 -04:00
Amina Adewusi 3c9826f4f4 Fixes shutdown hook error in timing report
This fixes the closed channel exception generated when running
sbt -timings help. This bug was introduced in sbt 1.4 where a wrapper
was created (Terminal.scala) around the terminal. This meant that the
shutdown hook which had been used previously was no longer working.

This has been fixed by avoiding the use of the JVM shutdown hook and
instead manually running the thunk at a place in the code where
the programme is still able to respond.
2021-08-20 17:45:14 +01:00