xuwei-k
ae1fdff968
use SAM type
2018-07-09 13:06:34 +09:00
Eugene Yokota
14a31634e7
Code formatting
2018-06-27 21:06:40 -04:00
eugene yokota
eb942f8e5f
Merge pull request #4003 from eed3si9n/wip/opt-delegation3
...
optimize scope delegation
2018-06-27 15:31:21 -04:00
Eugene Yokota
28e90ea09b
Merge branch '1.1.x' into wip/merge-1.1.x
2018-04-29 14:31:30 -04:00
eugene yokota
851ce6ed83
Merge pull request #4090 from eed3si9n/wip/unused-task
...
Fixes linter that detects missing .value
2018-04-26 12:25:09 -04:00
Eugene Yokota
06d7be0365
handle X / y
2018-04-26 04:44:12 -04:00
Dale Wijnand
8f4b8abb7b
Run scalafmt & test:scalafmt
2018-04-24 16:12:10 +01:00
Dale Wijnand
dfff1ed928
Merge pull request #4032 from eed3si9n/wip/servertest
...
improve server testing
2018-04-18 07:12:53 +02:00
Eugene Yokota
190dc23f70
Fixes linter that detects missing .value
...
Fixes #4079
#3216 introduced a linter that checks against missing `.value`, but the tree only checked for `Ident`. This doesn't work because in reality the symbols of build.sbt are transformed to `$somehash.npmInstallTask` where `somehash` is the wrapper object we create. Similarly for the built-in keys, they are presented as `sbt.Keys.compile`.
With this change unused task will fail to load the build with the following message:
```
/sbt-4079/build.sbt:26: error: The key `compile` is not being invoked inside the task definition.
Problem: Keys missing `.value` are not initialized and their dependency is not registered.
Solution: Replace `compile` by `compile.value` or remove it if unused.
compile
^
/sbt-4079/build.sbt:27: error: The key `npmInstallTask` is not being invoked inside the task definition.
Problem: Keys missing `.value` are not initialized and their dependency is not registered.
Solution: Replace `npmInstallTask` by `npmInstallTask.value` or remove it if unused.
npmInstallTask
^
```
2018-04-11 01:31:38 -04:00
Dale Wijnand
54a6262f7f
Merge pull request #4041 from dwijnand/Scoped.equals
...
Give Scoped a default equals/hashCode implementation
2018-04-10 06:10:55 +01:00
Dale Wijnand
3692db9068
Give Scoped a default equals/hashCode implementation
2018-04-04 15:04:53 +01:00
Dale Wijnand
8c1337455d
Fix migrate URL
...
Fixes #4062
2018-04-04 14:26:03 +01:00
Dale Wijnand
af3eec7c31
Merge pull request #4045 from dwijnand/Deprecate-Scope.transformTaskName
...
Deprecate Scope.transformTaskName
2018-03-28 16:09:39 +01:00
eugene yokota
02acf9380e
Merge pull request #4042 from dwijnand/Reuse-Scoped.scoped-methods
...
Re-use Scoped.scoped* methods
2018-03-28 09:41:09 -04:00
Dale Wijnand
2e86eed151
Split BuildSettingsInstances out of SlashSyntaxSpec.scala
2018-03-27 16:32:34 +01:00
Dale Wijnand
165aac858e
Merge pull request #4040 from dwijnand/dedup/SlashSyntaxSpec
...
Dedup keys in SlashSyntaxSpec
2018-03-27 14:54:59 +01:00
Dale Wijnand
35decb6ee5
Deprecate Scope.transformTaskName
2018-03-27 09:59:07 +01:00
Dale Wijnand
d19329666a
Re-use Scoped.scoped* methods
2018-03-27 09:24:12 +01:00
Dale Wijnand
3c66f39744
Allow SlashSyntaxSpec to be Scalafmt formatted
...
Previously:
[warn] /d/sbt/main-settings/src/test/scala/sbt/SlashSyntaxSpec.scala:44: error: illegal start of simple expression
[warn] )
[warn] ^
2018-03-27 09:22:07 +01:00
Dale Wijnand
42b61a4f8e
Dedup keys in SlashSyntaxSpec
2018-03-27 09:22:06 +01:00
Dale Wijnand
51ff72872b
De-generalise expectValue in SlashSyntaxSpec
2018-03-27 09:22:06 +01:00
Dale Wijnand
006527d246
Re-order SlashSyntaxSpec arbitraries
2018-03-27 09:22:06 +01:00
Eugene Yokota
67e1e4a9ff
improve server testing
...
previously I was using separate thread in a forked test to test the server, but that is not enough isolation to run multiple server tests.
This adds `RunFromSourceMain.fork(workingDirectory: File)`, which allows us to run a fresh sbt on the given working directory. Next, I've refactored the stateful client-side buffer to a class `TestServer`.
2018-03-24 12:09:41 -04:00
Eugene Yokota
d4cdb11b53
typo fix
2018-03-13 17:47:11 +09:00
Eugene Yokota
d2f2a90d5e
handroll for-expression
...
Ref https://github.com/sbt/sbt/pull/3979
Based on #3979 this handrolls the for-express using while.
2018-03-10 18:43:43 -05:00
Dale Wijnand
10275489d8
Merge pull request #3987 from dwijnand/document-Rich-Init-classes
...
Document RichInitX classes
2018-03-07 09:44:19 +00:00
Dale Wijnand
621ad2b553
Cleanup TaskNegSpec
2018-03-06 11:59:27 +00:00
Dale Wijnand
d26085155d
Cleanup InputWrapper imports
2018-03-06 11:54:11 +00:00
Dale Wijnand
77abb9ee29
Cleanup InputConvert
2018-03-06 11:54:10 +00:00
Dale Wijnand
3921c45563
Document RichInitX classes
2018-03-06 10:37:42 +00:00
Dale Wijnand
90cd60f3b9
Merge branch '1.1.x' into merge-1.1.x-into-1.x
...
* 1.1.x:
Use Java's redirectInput rather than sys.process's connectInput
Re-write toolboxClasspath to use sbt-buildinfo
Cleanup generateToolboxClasspath
Upgrade to sbt-buildinfo 0.8.0
Fix how fullClasspath is defined in TestBuildInfo
delete buildinfo.BuildInfo from sbt main
Conflicts:
project/plugins.sbt
2018-02-28 10:30:53 +00:00
Dale Wijnand
27fe5a6957
Re-write toolboxClasspath to use sbt-buildinfo
2018-02-23 13:20:19 +00:00
Colin Dean
3e11b3f000
Fixes link to documentation for deprecated 0.10/0.12 DSL syntax
...
Fixes sbt/website#558
2018-01-24 23:13:00 -05:00
Dale Wijnand
113656aed1
Remove compile warnings
2018-01-16 11:17:01 +00:00
Dale Wijnand
a90832b593
Remove all warnings from mainProj
2017-12-14 15:40:03 +00:00
Dale Wijnand
2390fdfac6
Remove all warnings from mainSettingsProj
2017-12-14 13:16:23 +00:00
Dale Wijnand
9f1d60be60
Rewrite to polymorphic function syntax
2017-10-25 10:23:46 +01:00
Dale Wijnand
f662fdda8e
Rewrite to function syntax
2017-10-25 10:22:48 +01:00
Simon Schäfer
93e08b7ee7
Fix warnings about unused pattern vars in various projects
2017-10-19 13:07:24 +02:00
Dale Wijnand
668ace98ee
Remove some duplication when only Scoped is required
2017-10-08 19:07:38 +01:00
Dale Wijnand
5e0b080f51
Fix some minor errors
2017-10-07 18:42:26 +01: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