Commit Graph

11969 Commits

Author SHA1 Message Date
eugene yokota f2006e22cf Merge pull request #2747 from eed3si9n/wip/quieter
[sbt 1.0] Quieter ivyLoggingLevel for CI
2016-09-16 03:06:06 -04:00
Eugene Yokota 15c078ab0b Quieter ivyLoggingLevel for CI
`ivyLoggingLevel` is dropped to `UpdateLogging.Quiet` when Jenkins or
Travis is detected.
2016-09-15 22:57:07 -04:00
Dale Wijnand 1b9f700c52 Merge pull request #2743 from eed3si9n/wip/silent
[sbt 1.0] Silent startup for scalas
2016-09-15 13:26:31 +01:00
Dale Wijnand 5e80016eb0 Merge pull request #2741 from eed3si9n/wip/early
[sbt 1.0] Rename early command to `early(command)`
2016-09-15 13:26:17 +01:00
Eugene Yokota 357a146460 Silent startup for scalas
Fixes #840
2016-09-15 03:42:23 -04:00
Eugene Yokota 9783ab1765 Migration notes 2016-09-15 03:13:08 -04:00
Eugene Yokota 9529f0c304 Add `-error` etc for log levels with one hyphen 2016-09-15 02:23:37 -04:00
Eugene Yokota 06724d1c4b Rename early command to `early(command)`
Fixes #2734, Ref #1041
e93c4450a1 added a feature called early
command, which uses `--` as a prefix to denote some commands that runs
ahead of session loading. While the feature might be useful especially
for logging, `--` is too useful just for this purpose.
2016-09-15 01:45:50 -04:00
eugene yokota fba4e78543 Merge pull request #46 from Duhemm/wip/maybe-equals
Implement hashCode, equals and toString in Maybe
2016-09-14 11:26:20 -04:00
eugene yokota b184f7e539 Merge pull request #48 from eed3si9n/wip/jline2
Interruptible read line
2016-09-14 11:24:51 -04:00
Eugene Yokota a38e100678 Handle sleep interruption 2016-09-12 23:11:20 -04:00
Eugene Yokota bc32cb4c6f Trying to make readline timeout 2016-09-12 23:11:20 -04:00
eugene yokota 57a655478f Merge pull request #2725 from dwijnand/scriptless-1.0
[sbt 1.0] Configure scripted to do less
2016-09-07 00:46:52 -04:00
eugene yokota 26d0b25a12 Merge pull request #2721 from eed3si9n/wip/zinc_x2
bumping to zinc 1.0.0-X3
2016-09-07 00:45:31 -04:00
Eugene Yokota f4400ed171 zinc 1.0.0-X3 2016-09-06 23:39:34 -04:00
Dale Wijnand 1ba7bb0fb9 Merge pull request #2712 from Duhemm/fport/key-selection-build-level
Forward port #2469 & #2708
2016-09-01 09:23:01 +01:00
Dale Wijnand 472d28964a Configure scripted to do less
Particularly doesn't compile, package and publish source and doc jars.
2016-09-01 01:14:14 +01:00
Martin Duhem faf6120c93 Unspecified project axis means current project or its build 2016-08-31 10:42:32 +02:00
Eugene Yokota 9655f50c55 bumping to zinc 1.0.0-X2 2016-08-30 21:37:20 -04:00
kenji yoshida 27fe8eb6f7 remove unused imports (#2719) 2016-08-30 07:29:17 +01:00
Dale Wijnand 2df9f9492d Merge pull request #2711 from eed3si9n/wip/value_and_op
[sbt 1.0] Remove old operators `<<=`, `<+=`, and `<++=`
2016-08-30 07:17:52 +01:00
Eugene Yokota 01bd4add3c Replace the old operators with Restligeist macros
The old operators `<<=`, `<+=`, and `<++=` are now replaced with
Restligeist macros that will always fail during compile-time but can
display migration guide as the error message.

This would provide better upgrade experience than simply removing the
methods and displaying `<<= is not a member of sbt.TaskKey`.
2016-08-29 23:08:27 -04:00
Eugene Yokota 829ec4dd3a Update Defaults and scripted to := style 2016-08-29 23:02:10 -04:00
eugene yokota 9335a03837 Merge pull request #2718 from xuwei-k/JavaConverters
use JavaConverters instead of JavaConversions
2016-08-29 15:31:01 -04:00
eugene yokota 9f21bb451d [sbt 1.0] Remove .value extension method from input tasks (#2710)
* Remove .value from input tasks. Ref #2709

Calling `.value` method on an input task returns `InputTask[A]`, which
is completely unintuitive and often results to a bug.

In most cases `.evaluated` should be called, which returns `A` by
evaluating the task. Just in case `InputTask[A]` is needed,
`toInputTask` method is now provided.

* Fixed test

* Rename toInputTask to inputTaskValue
2016-08-29 21:11:32 +02:00
xuwei-k 857fc0f5da use JavaConverters instead of JavaConversions
- https://issues.scala-lang.org/browse/SI-9684
- 0c5b42d974
2016-08-30 01:31:04 +09:00
eugene yokota 57cc782db8 Cutting out openjdk7 from PR validation (#2714) 2016-08-26 23:44:05 -04:00
Martin Duhem cfdbce10da Scripted test for build level keys. 2016-08-26 08:14:28 +02:00
Martin Duhem 3da38b14db Fix key selection for build level keys
PR #2469 added build keys to tab completion, with the side effect of
considering as available candidate in key selection, thus making sbt
think that some inputs were ambiguous (e.g. `baseDirectory`): should it
apply to the current project or to the build level key?

This commit fixes this issue by improving the key selection:
 - If there's no candidate, we return the default key
 - If there's a single possible project level key, and zero or more
   build level keys, then we select the project level key.
 - If there are zero project level key, and a single build level key,
   then we select the build level key
 - If there are multiple candidates, sbt says that the input is
   ambiguous.

Fixes #2707
2016-08-26 08:14:28 +02:00
Martin Duhem 3c9d2ff57a Completion for build-level keys
sbt's shell provided completion only for keys that were relative to a
defined project, but didn't provide completion for keys that belong to
the build definition only.

This commit fixes this issue by defining a new kind of `Parser` (from
which completions are generated) which runs its input simultaneously on
distinct parsers. We now define a parser for project-level keys and
another parser for build-level keys. These two parsers are eventually
combined, and we get the completions of both parsers.

Fixes sbt/sbt#2460
2016-08-26 08:14:28 +02:00
eugene yokota a1dfe86698 Merge pull request #112 from fommil/lunix
add support for .jvmopts to the bash launcher
2016-08-25 16:46:47 -04:00
Sam Halliday d9da67979a -java-home should set PATH for javac usage 2016-08-25 20:16:35 +01:00
Sam Halliday 45badebcee add support for .jvmopts to the bash launcher 2016-08-25 20:16:35 +01:00
eugene yokota a6e8d62c19 Merge pull request #111 from fommil/windows
add support for .jvmopts and .java-version to Windows launcher
2016-08-24 16:10:41 -04:00
Sam Halliday daed09b8cd add support for .jvmopts and .java-version to Windows launcher 2016-08-24 20:55:02 +01:00
eugene yokota 18e2fa2f28 Merge pull request #110 from sbt/fix-win-path
Upgrade to sbt-native-packager 1.1.1. Fixes #76.
2016-08-22 11:57:32 -04:00
Dale Wijnand a1e1a570e0 Add sbt.build.version from CONTRIBUTING to Travis config 2016-08-22 12:22:29 +01:00
Dale Wijnand acc734e669 Switch Travis to Oracle JDK 7
.. required by the newer sbt-native-packager.
2016-08-22 12:13:27 +01:00
Dale Wijnand cffb8e0441 Upgrade to sbt-native-packager 1.1.1. Fixes #76.
The upgrade includes this fix https://github.com/sbt/sbt-native-packager/pull/169
2016-08-22 11:37:19 +01:00
Dale Wijnand bea3fac13e Misc email/URL updates 2016-08-22 11:25:30 +01:00
Martin Duhem 8956da53a8 Update to latest revision of sjsonnew 2016-08-21 19:56:31 +02:00
Martin Duhem cee43575ce Remove unused additional formats 2016-08-21 17:52:08 +02:00
Martin Duhem 4e233d81f9 Make Maybe's toString closer to the actual code 2016-08-21 14:24:34 +02:00
Martin Duhem 432c93b0bb Implement hashCode, equals and toString in Maybe
This brings Maybe's behavior closer to scala's Option.
2016-08-19 15:52:17 +02:00
kenji yoshida 0c086a7761 `aggregate` can now be used inside a .sbt file (#2683)
(cherry picked from commit b92e5773f7)
2016-07-27 23:35:16 +09:00
Martin Duhem feda07b896 Adapt to recent changes to sjson-new 2016-07-24 21:42:03 +01:00
Martin Duhem 465774b13c Adapt to recent changes to sbt-datatype 2016-07-24 21:10:36 +01:00
Dale Wijnand 480a2f3040 Merge pull request #2676 from eed3si9n/wip/scalariform
Check formatting with TravisCI
2016-07-19 00:29:06 +01:00
Eugene Yokota 2dce25fa66 Fix travis file 2016-07-18 12:58:30 -04:00
Dale Wijnand c5f59d4406 Check formatting with TravisCI
Fixes #2657
2016-07-18 12:58:30 -04:00