Johannes Rudolph
73faf777f2
Make autoconversion from sbinary -> jsonnew only apply in sbt 1.x
2017-10-23 16:52:38 +02:00
Johannes Rudolph
e813b28a1c
Move SbtAccess to our own package below sbt to prevent accidental namespace clashes with other plugins / sbt
2017-10-23 16:44:15 +02:00
Johannes Rudolph
cfa9f462cf
Test for all sbt versions on travis
2017-10-23 16:26:43 +02:00
Johannes Rudolph
0bbeea3977
Modernize and adapt build, update to newest versions
2017-10-23 16:26:43 +02:00
Johannes Rudolph
8d5e9d9015
Cleanup README
2017-10-23 16:14:18 +02:00
Allan Timothy Leong
bd1a38be54
Remove unused imports + variables
2017-10-22 16:31:03 +08:00
Eugene Yokota
bcd21ba9b6
Merge branch 'wip/3648' into 1.x
2017-10-20 23:58:39 -05:00
eugene yokota
294a12fbf1
Merge pull request #3654 from scalacenter/json-locks
...
Add vscode-sbt-scala json locks
2017-10-20 17:19:45 -05:00
jvican
41a058c9b9
Add vscode-sbt-scala json locks
...
This is what gets generated after `compile`.
2017-10-20 20:05:16 +02:00
Dale Wijnand
9e85c08fb1
Merge pull request #3651 from eed3si9n/wip/scala2124
...
Bump to Scala 2.12.4
2017-10-20 06:44:09 -05:00
Eugene Yokota
ae860d5a7d
Bump to Scala 2.12.4
...
Uses Scala 2.12.4 for the build definition. This includes fix for runtime reflection of empty package members under Java 9.
Fixes sbt/sbt#3587
2017-10-20 00:23:29 -05:00
Simon Schäfer
ebac491501
Disable patvars warnings
...
There are simply too many unused pattern vars and I don't want to fix
them right now. And watching all of the warnings everywhere is annoying.
2017-10-19 13:07:24 +02:00
Simon Schäfer
93e08b7ee7
Fix warnings about unused pattern vars in various projects
2017-10-19 13:07:24 +02:00
Simon Schäfer
187a861194
Fix unused pattern match vals in run project
2017-10-19 13:07:24 +02:00
Simon Schäfer
ede94cb34c
Fix unused pattern vals warnings in main-command project
2017-10-19 13:07:24 +02:00
Simon Schäfer
0454b873bf
Fix warnings in protocol project
...
There were warnings about catch all exception handlers.
2017-10-19 13:07:24 +02:00
Simon Schäfer
dc5411836a
Fix warnings in util-copmlete project
...
There were warnings because of
- unused pattern match values
- deprecations
- unused methods (`def unary_-` and `def -`)
2017-10-19 13:07:24 +02:00
Simon Schäfer
38f550deef
Fix warnings in util-collection project
...
There were warnings because of
- unused pattern match values
- deprecations
- a Xlint bug in scalac
2017-10-19 13:07:24 +02:00
Simon Schäfer
30d59d356d
Disable warnings for unused params and implicits
...
There are many warnings because unused parameter are everywhere.
2017-10-19 13:07:24 +02:00
Guillaume Massé
66f801bf92
Compiles with sbt 1.0 and sbt 0.13
...
1. ascii-graphs
We need a 2.12 version of ascii-graphs. The last commit to the project is in June 2013 (https://github.com/mdr/ascii-graphs/graphs/contributors ). We are now in October 2017. I opened a PR (https://github.com/mdr/ascii-graphs/pull/11 ) but I don't expect any progress on this front. We can maintain a fork or drop ascii-graphs.
2. ignoreMissingUpdate
ignoreMissingUpdate is a tricky one. Here is some explanation:
we need to duplicate the updateTask
in sbt it's define as:
```scala
def updateTask: Initialize[Task[UpdateReport]] = Def.task {
// ...
val uc0 = updateConfiguration.value
// ...
}
```
since it's not scoped to our task (ex: `updateConfiguration in ignoreMissingUpdate`) we cannot just do
```scala
updateConfiguration in ignoreMissingUpdate := {
updateConfiguration.value.withMissingOk(true)
}
```
For example, the following example yield `"u2: false"
```
val update2 = TaskKey[Unit]("update2", "...")
val update2Configuration = SettingKey[Boolean]("...")
update2 := Def.task {
val u2 = (update2Configuration in update2).value
println(s"u2: $u2")
}.value
update2Configuration := false
update2Configuration in update2 := true
```
3. cross publishing
We can use the ^ operator to publish. For example: `sbt "^ publish"` to publish for both sbt 0.13 and 1.0.
2017-10-17 15:42:00 +02:00
Guillaume Massé
8591a5adae
Bump to sbt 0.13.16, drop support for sbt 0.12.x
2017-10-16 16:44:26 +02:00
Dale Wijnand
4ce4fb72bd
Merge pull request #3635 from PanAeon/escape-sbt-file-imports
...
Escape imports from sbt files
2017-10-13 16:17:21 +01:00
PanAeon
64241e0d3a
Fixes #3464 . Escape imports from sbt files, so if user creates a backquoted definition then task evalution will not fail.
2017-10-13 11:04:15 +01:00
Dale Wijnand
86be5359e7
Initial scaladoc Initialize/Keyed/KeyedInitialize
2017-10-12 20:31:25 +01:00
Dale Wijnand
10397926aa
Make sure of EvaluateTask in Extracted obvious
2017-10-12 15:36:05 +01:00
eugene yokota
fa33b6e422
Merge pull request #3632 from dwijnand/trailing-println
...
Kill trailing println
2017-10-11 13:38:09 -04:00
Dale Wijnand
d8e52bb5d4
Kill trailing println
2017-10-11 15:29:15 +01:00
eugene yokota
fd20d3039a
Merge pull request #3629 from sbt/1.0.x
...
Merge 1.0.x
2017-10-10 12:32:10 -04:00
eugene yokota
8c04b267bf
Merge branch '1.x' into 1.0.x
2017-10-10 10:57:05 -04:00
Dale Wijnand
85af599b52
Merge pull request #3626 from eed3si9n/bport/3597
...
[1.0.x] Add system property to revert to old polling fs watcher
2017-10-10 11:36:13 +01:00
Michael Stringer
b9a4d32916
Add system property to revert to old polling fs watcher
...
This adds a sbt.watch.mode system property that if set to 'polling' will
use PollingWatchService instead of WatchServiceAdapter (nio).
On macOS this will default to 'polling' and on all others 'nio'.
This is a temporary workaround for users affected by #3527
2017-10-10 01:17:42 -04:00
eugene yokota
8da85e9380
Merge pull request #3597 from sbt/workaround/3527
...
Add system property to revert to old polling fs watcher
2017-10-10 01:14:03 -04:00
Michael Stringer
a3c34c6c0a
Add system property to revert to old polling fs watcher
...
This adds a sbt.watch.mode system property that if set to 'polling' will
use PollingWatchService instead of WatchServiceAdapter (nio).
On macOS this will default to 'polling' and on all others 'nio'.
This is a temporary workaround for users affected by #3527
2017-10-09 18:01:33 +01:00
Dale Wijnand
9ca909fe50
Merge pull request #3622 from dwijnand/slash-less-keys
...
Remove some duplication when only Scoped is required
2017-10-09 07:06:18 +01:00
Dale Wijnand
668ace98ee
Remove some duplication when only Scoped is required
2017-10-08 19:07:38 +01:00
Eugene Yokota
5c394e18f6
implement window/logMessage
...
This sends sbt's log message as "window/logMessage" event to LSP.
2017-10-08 01:51:27 -04:00
eugene yokota
84dafd0bc0
Merge pull request #3620 from eed3si9n/wip/previous4
...
Remove thunk for slash syntax
2017-10-07 14:25:08 -04:00
eugene yokota
626cf634dc
Merge pull request #4 from dwijnand/wip/previous4
...
Fix some minor errors
2017-10-07 13:44:27 -04:00
Dale Wijnand
5e0b080f51
Fix some minor errors
2017-10-07 18:42:26 +01:00
eugene yokota
d9ab8659af
Merge pull request #3 from dwijnand/wip/previous4
...
Add slash syntax for AttrKey that parity with "in" syntax
2017-10-07 13:24:57 -04:00
Dale Wijnand
ef4828cfc2
Add slash syntax for AttrKey that parity with "in" syntax
2017-10-07 13:12:17 +01:00
Dale Wijnand
d19c350687
Correct name of WithoutScope properties
2017-10-07 13:12:16 +01:00
Dale Wijnand
8af3110c00
Add .previous tests to SlashSyntaxTest
2017-10-07 13:12:16 +01:00
Dale Wijnand
fb28c201c8
Make scoped keys more frequent
2017-10-07 13:12:16 +01:00
Dale Wijnand
74ac7d9e07
Drop redudant label in expectValue
2017-10-07 13:12:15 +01:00
Dale Wijnand
025075efd0
Dedup, cleanup & cover all key types
2017-10-07 13:12:15 +01:00
Dale Wijnand
165dc794ca
Extract gen{Input,Setting,Task}Key
2017-10-07 13:12:15 +01:00
Dale Wijnand
18d615701f
Remove WithScope wrapping
2017-10-07 13:12:15 +01:00
Dale Wijnand
0bcd7c3b6d
Remove boilerplate around sbtSlashSyntaxRichConfiguration
2017-10-07 12:08:32 +01:00
Dale Wijnand
e5898111fe
Replace CanScope with Scoped.ScopingSetting
2017-10-07 12:07:19 +01:00