alodavi
67efea6248
[alodavi/improving_loading_settings_messaging] logging file and project name instead of only file name
2018-05-23 17:20:41 +02:00
Aloisia Davì
9b5f44f1ea
Merge branch '1.x' into alodavi/improving_loading_settings_messaging
2018-05-23 17:08:50 +02:00
Dale Wijnand
ab35c21c98
Drop deprecated write-sbt-version & notify-users-about-shell
...
Introduced in https://github.com/sbt/sbt/pull/4169 , these commands
aren't "user-facing" and are quite new. So no need to keep the old kebab
syntax.
2018-05-21 17:24:38 +01:00
tiqwab
b7c9862f16
Fix kebab-case commands: notify-users-about-shell, write-sbt-version
2018-05-19 18:31:20 +09:00
Aloisia Davì
145da16c7f
Merge branch '1.x' into alodavi/improving_loading_settings_messaging
2018-05-15 14:53:00 +02:00
Øyvind Høisæther
667a6be99e
Show all lines when running help <task>, but only first line when listing tasks
2018-05-15 14:33:24 +02:00
alodavi
b30159aded
[alodavi/improving_loading_settings_messaging] logging the path instead of just the name
2018-05-15 14:06:50 +02:00
Øyvind Høisæther
34cc8cd273
Only use first line for multiline descriptions
2018-05-15 13:42:41 +02:00
Alexander Samsig
7dfe6097fb
Removed Load and LoadCommand since they are no longer in use.
...
Changed add-defaults-commands directly since it is only used internally.
Added deprecation warning for LoadFailed and LastGrep.
2018-05-15 12:44:17 +02:00
Eugene Yokota
90931857c3
Merge branch 'pr/4096' into wip/bumpzinc
2018-05-05 04:58:19 -04:00
Eugene Yokota
094c2c602d
Formatting
2018-05-05 04:57:14 -04:00
Eugene Yokota
8409735077
Merge branch '1.1.x' into wip/merge-1.1.x
2018-05-04 12:40:43 -04:00
Liu Fengyun
1057dcd291
update deprecated message
2018-05-04 17:10:50 +02:00
Liu Fengyun
50f2ebce88
overload autoPlugins for binary compatibility
2018-05-04 17:00:25 +02:00
Liu Fengyun
ecbfdfef25
fix compilation error
2018-05-03 22:36:17 +02:00
liu fengyun
5d63035a27
Fix #4073 : support detect dotty plugins
2018-05-03 22:29:34 +02:00
Eugene Yokota
28e90ea09b
Merge branch '1.1.x' into wip/merge-1.1.x
2018-04-29 14:31:30 -04:00
Seth Tisue
4477a42b5a
upgrade Scala 2.12.4 -> 2.12.6
...
I have no specific user-visible benefit in mind other than fewer
JARs to download for people who are on current versions of things
2018-04-27 23:20:51 -04:00
Ethan Atkins
0de8345e33
Remove watch loops
...
When source generators write into the unmanaged source directory, bad
things can happen. Continuous builds will loop indefinitely and
compiling will fail because the generated sources get added to the
source list twice, causing the incremental compiler to complain about
compiling classes it has already seen. My two-pronged solution is to
de-duplicate the sources task and to filter out managed source files in
watch sources. The drawback to the latter is that it causes the source
generation task to be executed twice per compile.
2018-04-27 14:42:37 -07:00
Dale Wijnand
a0e27c719c
Cleanup Resolve
2018-04-24 16:30:56 +01:00
Dale Wijnand
8f4b8abb7b
Run scalafmt & test:scalafmt
2018-04-24 16:12:10 +01:00
Ethan Atkins
754385125a
Use new EventMonitor in executeContinuously
...
In https://github.com/sbt/io/pull/142 , I add a new api for watching for
source file events. This commit updates sbt to use the new EventMonitor
based api. The EventMonitor has an anti-entropy parameter, so that
multiple events on the same file in a short window of time do not
trigger a build. I add a key to tune it.
The implementation of executeContinuously is pretty similar. The main
changes are that shouldTerminate now blocks (EventMonitor spins up a
thread to check the termination condition) and that the
EventMonitor.watch method only returns a Boolean. This is because
the event monitor contains mutable state. It does, however, have a
state() method that returns an immutable snapshot of the state.
2018-04-23 10:02:29 -07:00
Dale Wijnand
a2af3bff15
Merge pull request #4098 from eatkins/filter
...
Exclude directories instead of including files
2018-04-23 08:15:11 +01:00
Dale Wijnand
ccf938c786
Switch to varargs inThisBuild (+friends)
2018-04-19 22:34:52 +01:00
Dale Wijnand
f459b218c4
Switch inThisBuild (+friends) to use varargs SettingsDefinition
2018-04-19 22:34:32 +01:00
Ethan Atkins
2bb717dbf9
Exclude directories instead of including files
...
The existing filter caused SourceModificationWatch.watch to ignore
deleted files because !file.exists implies !file.isFile. The intention
of the filter was to exclude directories that had a name ending in
".scala".
2018-04-13 11:36:40 -07:00
Alexey Alekhin
a1e3146c08
Don't use initialize request id for the internal collectAnalyses call
2018-04-12 19:47:32 +02:00
Dale Wijnand
4fc45e0155
Merge pull request #4056 from BennyHill/fix/3042
...
Introduce CompositeProject
2018-04-09 11:30:17 +01:00
Nafer Sanabria
3e201cee4d
Add lastGrep command
2018-04-08 10:56:25 -05:00
Alistair Johnson
b0ad1a44c0
Remove projects parameter from CompositeProject.expand
2018-04-07 15:56:31 +02:00
Alistair Johnson
6cce4f6fd9
Remove duplicate Projects
2018-04-07 01:26:40 +02:00
Alistair Johnson
68c005e4b5
Ensure precedence of top level Projects over ComponentProjects
2018-04-07 01:04:45 +02:00
Jason Steenstra-Pickens
4dc76e2b38
Add dependencyResolution scoped to updateSbtClassifiers task
...
Fixes #3432
2018-04-06 10:41:31 +12:00
Alistair Johnson
03fc4ac686
Ensure unique project Id in composite projects
2018-04-04 21:01:05 +02:00
Alistair Johnson
77b536b25f
Merge branch '1.x' of https://github.com/BennyHill/sbt into fix/3042
...
Conflicts:
main/src/main/scala/sbt/internal/BuildDef.scala
main/src/main/scala/sbt/internal/EvaluateConfigurations.scala
2018-04-04 18:30:56 +02:00
Dale Wijnand
9b3694e443
Merge pull request #4054 from eed3si9n/wip/repl
...
Fix console, JLine issue
2018-04-03 16:44:42 +01:00
Dale Wijnand
d444b6b8ae
Merge pull request #4002 from eed3si9n/wip/opt-delegation-test
...
add tests around scope delegation
2018-04-03 16:43:09 +01:00
Alistair Johnson
cbb953279c
Intial implementation of CompositeProject
2018-03-31 20:28:09 +02:00
Eugene Yokota
88f50ce35d
Fix console, JLine issue
...
Fixes #3482
2018-03-30 23:09:01 -04:00
Dale Wijnand
289077a405
Re-introduce Command.process
...
This was an unnecessary removal in
e83564a6b7 .
2018-03-28 16:37:07 +01:00
Dale Wijnand
26c267e29e
Merge pull request #4043 from dwijnand/cleanup/ParseKey
...
Cleanup test/ParseKey
2018-03-28 16:10:03 +01:00
Dale Wijnand
25988d2256
Cleanup test/ParseKey
2018-03-28 09:04:12 +01:00
Eugene Yokota
c2837c7714
Merge branch 'wip/bumpsbt' into wip/merge-1.1.x
2018-03-27 10:16:10 -04:00
Dale Wijnand
b0f9fe77b6
Merge pull request #4036 from eed3si9n/wip/fix-startup-log
...
Fixes -error not suppressing startup logs
2018-03-26 15:28:50 +01:00
eugene yokota
cd40d1ac77
Merge pull request #4031 from eed3si9n/wip/bump
...
bump modules
2018-03-26 10:26:25 -04:00
Eugene Yokota
25ab94d96a
Fixes -error not suppressing startup logs
...
Fixes #3849
This brings back the 0.13 logic:
```scala
def setGlobalLogLevel(s: State, level: Level.Value): State = {
s.globalLogging.full match {
case a: AbstractLogger => a.setLevel(level)
case _ => ()
}
s.put(BasicKeys.explicitGlobalLogLevels, true).put(Keys.logLevel.key, level)
}
```
2018-03-25 14:56:00 -04:00
Eugene Yokota
b111b05d5f
Fixes new command leaving target directory
...
Fixes #2835
This fixes `new` command creating `target` directory by moving the `target` to a staging directory in the command itself.
2018-03-24 13:45:35 -04:00
Eugene Yokota
9d2d81645b
bump modules
2018-03-24 11:02:40 +09:00
Dale Wijnand
00ce32f102
Cleanup CommandChannel
2018-03-20 09:17:55 +00:00
Dale Wijnand
6ceed00f48
Cleanup NetworkChannel
2018-03-19 15:11:39 +00:00
tmiyamon
77ffbe896d
support test compile on saving in vscode
2018-03-16 18:03:52 +09:00
Dale Wijnand
d3ef452a5f
Extract jsonRpcRespondErrorImpl
2018-03-15 12:55:21 +00:00
Dale Wijnand
268b5111ab
Format LSP methods
2018-03-15 12:55:21 +00:00
Dale Wijnand
de690f4e41
Collapse 1-line scaladocs
2018-03-15 12:55:20 +00:00
Dale Wijnand
98332c0891
Reply to sbt/exec w/ a Response/Error w/ error code
2018-03-14 13:56:29 +00:00
Eugene Yokota
0433440c59
move ServerHandler to internal per review
2018-03-13 23:42:40 +09:00
Eugene Yokota
cd9f0d2711
make sbt server extensible
...
Fixes #3890
Here's an example:
```scala
Global / serverHandlers += ServerHandler({ callback =>
import callback._
import sjsonnew.BasicJsonProtocol._
import sbt.internal.protocol.JsonRpcRequestMessage
ServerIntent(
{
case r: JsonRpcRequestMessage if r.method == "lunar/helo" =>
jsonRpcNotify("lunar/oleh", "")
()
},
PartialFunction.empty
)
```
2018-03-13 23:02:45 +09:00
Eugene Yokota
b82a1870a7
add tests around scope delegation
2018-03-10 17:24:39 -05:00
Dale Wijnand
80d342a811
Merge pull request #3995 from ruippeixotog/cross-strict-aggregation
...
Filter incompatible aggregates in cross switch commands
2018-03-08 11:27:55 +00:00
Dale Wijnand
a85d7606f3
Merge pull request #3994 from fmlrt/in_configuration_scope_filter_factories
...
Add more configuration axis ScopeFilter factory methods
2018-03-08 11:26:38 +00:00
TATSUNO Yasuhiro
68f58aba87
Merge branch '1.x' into global-eviction-warning-options
2018-03-08 09:18:53 +09:00
exoego
dc4f93a7c3
Remove unnecessary GlobalScope
2018-03-08 08:14:39 +09:00
Rui Gonçalves
251e5ab26e
Filter incompatible aggregates in cross switch commands
2018-03-07 00:27:22 +00:00
Maksym Fedorov
15f4498494
Add more configuration axis ScopeFilter factory methods
2018-03-06 23:01:31 +01:00
Dale Wijnand
685b416b8e
Cleanup Main
2018-03-06 11:59:26 +00:00
Dale Wijnand
dbbba67d36
Fix a Scaladoc error in BuildStructure
2018-03-06 11:54:13 +00:00
Dale Wijnand
78f4f56d1c
Fix 2 "discarded non-Unit value" warnings in ScriptedPlugin
2018-03-06 11:54:12 +00:00
Dale Wijnand
9006abe9be
Cleanup ScriptedPlugin
2018-03-06 11:54:12 +00:00
Dale Wijnand
6e83d408da
Define ScriptedPlugin keys with macros
2018-03-06 11:54:11 +00:00
Dale Wijnand
a73aa97b2c
Cleanup Extracted
2018-03-06 11:54:10 +00:00
exoego
36438d2ac3
Add eviction warnings options to global
2018-03-02 14:45:56 +09:00
Dale Wijnand
76e2f550ec
Merge branch '1.1.x' into merge-1.1.x-into-1.x
...
* 1.1.x:
Update mimaPreviousArtifacts/sbt.version
Introduce SBT_GLOBAL_SERVER_DIR env var to override too long paths
Handle very long socket file paths on UNIX
Conflicts:
project/build.properties
2018-02-14 14:38:07 +00:00
Dale Wijnand
4e038c91ce
Introduce SBT_GLOBAL_SERVER_DIR env var to override too long paths
2018-02-12 17:57:26 +00:00
Eugene Yokota
3db0e09b33
Merge branch '1.1.x' into wip/1.1.1
...
# Conflicts:
# main/src/main/scala/sbt/internal/CommandExchange.scala
# main/src/main/scala/sbt/internal/ConsoleProject.scala
# notes/1.0.2/sample.md
# notes/1.1.1/sample.md
# notes/sample.md
# sbt/src/test/scala/sbt/ServerSpec.scala
2018-02-09 23:55:23 -05:00
Dale Wijnand
8e7dfb4b20
Handle very long socket file paths on UNIX
...
Fixes #3930
2018-02-08 13:00:46 +00:00
eugene yokota
4a8adbb8e0
Merge pull request #3923 from dwijnand/PluginCross-scala-versions
...
Upgrade Scala versions that ^^ uses
2018-02-07 22:02:10 -05:00
eugene yokota
54eb6c2d6b
Merge pull request #3929 from eed3si9n/wip/servertest2
...
Backport server testing as a unit test
2018-02-07 21:18:35 -05:00
Eugene Yokota
3954985506
formatting
2018-02-07 18:16:02 -05:00
Eugene Yokota
5ab122c3cf
Use State to pick the port file
2018-02-07 18:00:02 -05:00
Deokhwan Kim
11dbbd0cfa
Update documentation for skip
...
'skip' is also supported for 'publish' by sbt/sbt#3380 .
2018-02-07 00:32:03 -05:00
Steve Waldman
96b9429669
Rework false-defaulting 'suppressServer' to true-defaulting 'autoStartServer'.
2018-02-06 11:49:46 -08:00
Dale Wijnand
2db5c77442
Upgrade Scala versions that ^^ uses
...
Refs #3907
2018-02-06 16:02:45 +00:00
Steve Waldman
0aa133d276
Implement 'suppressServer' setting, for builds and plugins that prefer to be conservative about exposure to other processes.
2018-02-05 23:11:42 -08:00
Eugene Yokota
4b1de14f87
Use State to pick the port file
2018-01-30 23:46:12 -05:00
Dale Wijnand
e3f33ddf7d
Merge pull request #3897 from dwijnand/misc
...
Misc tweaks and cleanups
2018-01-30 13:02:55 +00:00
Dale Wijnand
286758e2ba
Minor cleanups
2018-01-30 07:29:17 +00:00
eugene yokota
5d89795657
Merge pull request #3876 from eed3si9n/wip/jlineinit
...
Fix tab completion running `sbt console`
2018-01-22 14:14:35 -05:00
Eugene Yokota
c20029ce16
Work around package name confusion
...
This works around the name conflict between sbt.test package and sbt.Keys.test.
1. sbt.test package is renamed to sbt.scriptedtest. This allows 1.0 plugins and builds to use `test` to mean `Keys.test`.
2. To keep binary compatibility for sbt 0.13 scripted, I am adding `sbt.test.ScriptedRunner` and `sbt.test.ScriptedTests` in `scripted-plugin` artifact.
3. Another affected user is Giter8 plugin that uses ScriptedPlugin. Since the intereactions are limited to `sbt.ScriptedPlugin.*`, we should be fine here. - https://github.com/foundweekends/giter8/blob/v0.11.0-M2/plugin/src/main/scala-sbt-1.0/giter8/SBTCompat.scala
2018-01-22 14:03:02 -05:00
Eugene Yokota
b05802f63b
move some scripted defaults settings to global
...
Fixes #3656
2018-01-22 14:03:02 -05:00
Eugene Yokota
08eaba9107
Add SbtPlugin
...
Fixes #3538
This brings in `sbt.ScriptedPlugin` as `sbt.plugins.ScriptedPlugin` into sbt mothership.
In addition, `sbt.plugins.SbtPlugin` is added that enables the scripted plugin and `sbtPlugin := true`.
This allows plugin authors to bring in scripted plugin by writing:
```scala
lazy val root = (project in file("."))
.enablePlugins(SbtPlugin)
```
2018-01-22 14:02:06 -05:00
Eugene Yokota
ca712acf41
Fix tab completion running `sbt console`
...
Fixes #3841
This fixes console task that internally uses JLine. When `console` is started from batch mode, the tab is printed as is. This is because JLine is not initialized yet.
Calling `usingTerminal` initializes and restores the terminal afterwards.
2018-01-16 15:41:48 -05:00
Dale Wijnand
113656aed1
Remove compile warnings
2018-01-16 11:17:01 +00:00
Dale Wijnand
0885233281
Deprecates Extracted#append for appendWithSession.
...
.. and appendWithoutSession.
2018-01-15 14:48:58 +00:00
Dale Wijnand
a0b27d29b7
Merge pull request #3854 from sbt/1.1.x
...
1.1.x
2018-01-08 11:16:26 +00:00
Dale Wijnand
4752084f91
Introduce projectToLocalProject to replace projectToRef
...
Fixes #3757
2018-01-02 16:07:29 +00:00
Eugene Yokota
0aebb92ef5
don't block the build when server can't get up
2017-12-22 16:14:05 -05:00
Antonio Cunei
94e36a14c8
Change modifiedTime definitions
2017-12-22 01:55:37 +01:00
Antonio Cunei
ebff7919e9
Revert *ModifiedTime() calls to *lastModified*() calls
...
There are just too many instances in which sbt's code relies on
the `lastModified`/`setLastModified` semantics, so instead of moving
to `get`/`setModifiedTime`, we use new IO calls that offer the new
timestamp precision, but retain the old semantics.
2017-12-22 01:55:37 +01:00
Dale Wijnand
fd8b422488
Merge pull request #3760 from mpollmeier/mpollmeier/resolver-not-needed-if-not-publishing
...
don't require publishTo specified if publishArtifact is `false`
2017-12-21 15:40:17 +00:00
Eugene Yokota
13e1862c2f
set jna.nosys to true programmatically
...
Previously I was seeing the error upon the first scripted test. I thought it was because Main was somehow not early enough. It might just be because scripted technically runs as part of the build.
Ref sbt/io#110
2017-12-21 00:08:56 -05:00