Commit Graph

17940 Commits

Author SHA1 Message Date
Alexandre Archambault 677725dc3f
Merge pull request #243 from alexarchambault/develop
Minor tweaking
2020-05-29 19:44:42 +02:00
Alexandre Archambault cc9d567917
Pass some missing strict parameters to coursier (#244) 2020-05-29 18:49:12 +02:00
eugene yokota 0d90b7d67b
Merge pull request #5579 from eed3si9n/wip/banner
Add welcome banner with Java version
2020-05-29 12:26:58 -04:00
eugene yokota 76d3c88ad9
Merge pull request #323 from eed3si9n/wip/dont_use_homebrew
Remove Homebrew from CI
2020-05-29 12:20:30 -04:00
Alexandre Archambault caa1123c1f Set csrConfiguration too, in sbt-lm-coursier
sbt-lm-coursier uses its own coursierConfiguration, rather than
csrConfiguration from sbt. Setting the latter just-in-case some other
plugin, or users, rely on csrConfiguration.
2020-05-29 15:55:21 +02:00
Alexandre Archambault d8ea3b91d5 Add helper method 2020-05-29 15:55:21 +02:00
Scala Steward 5e5939d693
Update librarymanagement-ivy to 1.3.3 (#242) 2020-05-29 09:55:03 +02:00
Eugene Yokota 9264b128ef Lower-case some messages 2020-05-29 02:55:12 -04:00
Eugene Yokota 2bf1bcc884 Add welcome banner with Java version
Fixes https://github.com/sbt/sbt/issues/5544
2020-05-29 02:35:59 -04:00
Eugene Yokota c55cccd4d5 Remove Homebrew from CI
Ref https://github.com/Homebrew/homebrew-core/issues/50649
2020-05-29 01:52:58 -04:00
eugene yokota 24f367fa07
Merge pull request #5576 from eed3si9n/wip/bumplauncher
update to launcher 1.1.4
2020-05-28 17:00:00 -04:00
Eugene Yokota 4bb4c3a9b6 launcher 1.1.4
Forward `m.allowInsecureProtocol` to `MavenRepository`.
2020-05-28 16:21:46 -04:00
eugene yokota e165629d74
Merge pull request #5538 from adpi2/topic/build-server-protocol
Topic/build server protocol
2020-05-28 16:02:12 -04:00
eugene yokota 1c462be007
Merge pull request #332 from eed3si9n/wip/bumpivy
Ivy 2.3.0-sbt-839fad1cdc07cf6fc81364d74c323867230432ad
2020-05-28 10:37:47 -04:00
Adrien Piquerez a498a20627
Merge branch 'develop' into topic/build-server-protocol 2020-05-28 08:57:23 +02:00
Eugene Yokota c1dbeca90f Ivy 2.3.0-sbt-839fad1cdc07cf6fc81364d74c323867230432ad 2020-05-28 00:48:36 -04:00
Henri Cook 4872ddf3ef Add tests for supporting -debug flag in SBT_OPTSs 2020-05-25 19:39:54 +01:00
Henri Cook b7558e11b9 Support debug flags in SBT_OPTs 2020-05-25 18:57:53 +01:00
Scala Steward 77a3c40fc4
Update coursier to 2.0.0-RC6-19 (#240) 2020-05-25 19:03:20 +02:00
Adrien Piquerez 0789fd7be6 Use java command in BspConnectionDetails 2020-05-25 13:32:48 +02:00
Adrien Piquerez b184be860f Add headers 2020-05-25 10:43:54 +02:00
Adrien Piquerez 914b592fb2 scalafmt 2020-05-25 09:40:54 +02:00
Adrien Piquerez 18505c4a50 Add Mima filters for sbt.internal 2020-05-22 19:07:02 +02:00
Adrien Piquerez 4f00abf1ba BSP is part of the JVM plugin 2020-05-22 13:39:59 +02:00
Adrien Piquerez 6bce0a7b07 update NetworkClient 2020-05-22 11:17:33 +02:00
Adrien Piquerez c11ee3269c Add BspCompilationTaskProgress 2020-05-22 11:15:47 +02:00
Alexandre Archambault 031648a1d7
Fix provided scope handling (#239)
It was resolved independently of compile since we run resolutions for
each configuration. It couldn't bump versions in compile because of that
in particular.
2020-05-22 01:56:17 +02:00
Alexandre Archambault b82f3a2746
Merge pull request #238 from alexarchambault/clean-up
Clean-up
2020-05-21 15:20:57 +02:00
eugene yokota 1f3ac6c8cd
Merge pull request #5564 from dwijnand/1.4/oome-null-msg
Avoid making NPEs out of OOMEs!
2020-05-19 20:19:00 -04:00
Dale Wijnand ff97fb6068 Avoid making NPEs out of OOMEs!
(cherry picked from commit ba29f65f17c7b9d9ac5bf79d0934cf23438a16b4)
2020-05-19 21:30:53 +01:00
Eugene Yokota b43f663b0e Automatic conversion to Def.taskIf
When `Def.task`, `:=`, `+=` etc contains `if` and only `if` expression automatically treat it as a conditional task even if the else clause contains `.value`.
2020-05-19 15:02:57 -04:00
Alexandre Archambault 33cfaf3df6 Address compilation warnings 2020-05-19 15:58:31 +02:00
Alexandre Archambault c82ab8850d Remove former shading plugin related code
Which is now unused.
2020-05-19 15:58:31 +02:00
Alexandre Archambault dabf6c8c8b
Merge pull request #235 from alexarchambault/per-config-resolution
Per config resolution
2020-05-19 15:50:25 +02:00
Alexandre Archambault 2c2c98669d Clean-up scripted test 2020-05-19 14:23:48 +02:00
Alexandre Archambault 123f40723d Clean-up scripted test
Actually unused file
2020-05-19 14:23:48 +02:00
Alexandre Archambault 8aa40d1f21 Move ivy.xml generation stuff to lm-coursier
So that it can be re-used from sbt
2020-05-19 14:23:48 +02:00
Alexandre Archambault 6cebc8fe7a Keep global exclusions as such in generated ivy.xml 2020-05-19 14:23:48 +02:00
Alexandre Archambault 3d374247ca Rely on coursier.Resolve to handle exclusions
It applies it to root dependencies too, in particular.
2020-05-19 14:23:48 +02:00
Alexandre Archambault fa72797823 Clean-up scripted test 2020-05-19 14:23:48 +02:00
Alexandre Archambault 808f9a0d0f Tweak updateSbtClassifiers handling in sbt-coursier
Running one resolution per config messed things up a bit…
2020-05-19 14:23:48 +02:00
Alexandre Archambault 3cd521c43c Run resolution for each configuration
Rather than for each configuration sub-graph. This runs a resolution for
Compile, one for Runtime, one for Test, etc. rather than one for all 3
of them, for example.

We re-use the Resolution instance from the first extended configuration,
so that the performance penalty is really low.
2020-05-19 14:23:48 +02:00
Alexandre Archambault 627877fcc7 Update coursier to 2.0.0-RC6-18 2020-05-19 14:23:43 +02:00
Adrien Piquerez a31747758c Create BSP connection file at server startup 2020-05-18 09:35:14 +02:00
eugene yokota 85c1c63176
Merge pull request #5560 from eatkins/remove-sbtopts
Remove .sbtopts
2020-05-18 00:27:56 -04:00
Eugene Yokota 45e8426d27 def taskIf[A](a: A): Initialize[Task[A]]
Make `Def.taskIf` accept pure `A` type, as opposed to `Def.task { ... }`.
2020-05-17 23:44:35 -04:00
Eugene Yokota c6f62293f1 Def.taskIf macro
Def.taskIf accepts an if-expression or a block ending in an if-expression.
2020-05-17 23:36:04 -04:00
Eugene Yokota fc791cc23e Rewrite tasks using Def.ifS 2020-05-17 23:36:04 -04:00
Eugene Yokota 2feecf8a1f Selective functor
This implements Selective functor for `Either[A, B]` "task" (`Initialize[Task[Either[A, B]]]`).
The selective functor allows an encoding of if-expression:

```
  def ifS[A](
      x: Def.Initialize[Task[Boolean]]
  )(t: Def.Initialize[Task[A]])(e: Def.Initialize[Task[A]]): Def.Initialize[Task[A]]
```

The benefit of this approach is that task dependencies are still visible to inspect command.
2020-05-17 23:36:04 -04:00
Ethan Atkins 8f2d35685b Remove .sbtopts
These prevent sbt from loading with the windows batch script. I think
it's better for each developer to manually decide how much ram they want
to devote to sbt anyway.
2020-05-16 19:28:51 -07:00