Commit Graph

4660 Commits

Author SHA1 Message Date
Dale Wijnand 8f2a5a659a Merge pull request #2742 from eed3si9n/wip/early2
[sbt 0.13] Rename early command to `early(command)`
2016-09-15 11:22:16 +01:00
Eugene Yokota ee718e8700 Rename early command to `early(command)`
Backports #2741, Fixes #1041

e93c445 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.

In addition, this adds log level commands with single `-`, such as
-error to treat them as early commands; and keeps `--` variant for log
level for backward compatibility.
2016-09-15 03:06:12 -04:00
Eugene Yokota 5cc4f2fadb Use jEnv 2016-09-15 02:56:10 -04:00
Dale Wijnand 4fa4bda69f Merge pull request #2738 from eed3si9n/wip/extra_rename
Rename to extraProjects/derivedProjects
2016-09-15 07:12:26 +01:00
Eugene Yokota d1214bd823 jEnv 2016-09-14 20:09:25 -04:00
Eugene Yokota 675f70fd85 Rename to extraProjects/derivedProjects
Ref #2717
2016-09-14 20:09:16 -04:00
eugene yokota 0a13ac1231 Merge pull request #2730 from dwijnand/wip/forked_test
Fail when the forked test harness fails
2016-09-05 14:19:11 -04:00
eugene yokota 40b0b828e5 Merge pull request #2731 from dwijnand/wildcard-exclusions
Support wildcard exclusions
2016-09-05 14:15:41 -04:00
Dale Wijnand c6527b0665 Test throwing in Test#execute too 2016-09-02 15:39:09 +01:00
Dale Wijnand 6a26bb2fb6 Return a better forked test harness failure message 2016-09-02 14:19:42 +01:00
Jaroslaw Grabowski cfe3b801e1 Support wildcard exclusions in maven resolver
The idea here is that if a dependency contains exclude with wildcards
than it is inTransitive.
2016-09-02 12:20:22 +01:00
Jaroslaw Grabowski 4cdbafadbf Add failing transitive wildcard dependency test 2016-09-02 12:17:29 +01:00
Eugene Yokota 254c615f36 Fail when the forked test harness fails
Fixes #2442/#2722
2016-09-02 11:59:30 +01:00
Dale Wijnand 84cb5e3a86 Add another fork-uncaught scripted test
Originally from https://github.com/retronym/sbt-test-fork-swallows-error
2016-09-02 11:40:47 +01:00
eugene yokota 16a6906826 Deprecate the old operators `<<=`, `<+=`, and `<++=` (#2716)
* Backport style changes in tests and Defaults.scala

This backports the scripted tests and Defaults.scala style changes to
use `build.sbt` and `:=`.

* Fix backport

* 	Deprecate the old operators `<<=`, `<+=`, and `<++=`

The no-longer-documented operators `<<=`, `<+=`, and `<++=` are
deprecated in anticipation of the removal in sbt 1.0. Ref #2711

For `<<=`, the suggested migration would be to use either `:=` or `~=`
operators. The RHS of `<<=` takes an `Initialize[_]` expression, which
can be converted to `:=` style by wrapping the expression in
parenthesis, and calling `.value` at the end.
2016-08-29 21:15:13 +02:00
eugene yokota cd216a2758 Backport style changes in scripted tests and Defaults.scala (#2715)
* Backport style changes in tests and Defaults.scala

This backports the scripted tests and Defaults.scala style changes to
use `build.sbt` and `:=`.
2016-08-29 21:14:39 +02:00
eugene yokota d0ce0cef49 Merge pull request #2717 from eed3si9n/wip/plugin
Add buildExtras and projectExtras
2016-08-27 15:03:27 -04:00
Eugene Yokota 0fab1181c4 Add buildExtras and projectExtras. Fixes #2532
This adds support to generate synthetic subprojects from an auto plugin.

In addition, a method called `projectOrigin` is added to distinguish
Organic, BuildExtra, ProjectExtra, and GenericRoot.
2016-08-27 07:31:51 -04:00
eugene yokota 6631456eff Deprecate .value extension method from input tasks (#2709)
Calling the `.value` method on an input task returns `InputTask[A]`, which is completely unintuitive. I think it's basically a bug in `.value`. This change deprecates the `.value` call on input tasks, in preparation to the removal in sbt 1.0.

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

One of the motivation for doing this now is the deprecation of old operators `<<=`, which forces more users to convert to the `:=` style and potentially run into the `.value` behavior.
2016-08-26 14:44:49 -04:00
eugene yokota 239549617b Merge pull request #2708 from Duhemm/wip/fix-2707
Fix key selection for build level keys
2016-08-26 01:06:32 -04:00
Martin Duhem 5ed3ce7279 Scripted test for build level keys. 2016-08-25 15:59:43 +02:00
Martin Duhem d9722fa7e4 Notes for #2708 2016-08-24 14:01:34 +02:00
Martin Duhem 60bcc58852 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-24 11:13:08 +02:00
Eugene Yokota e94147456c launchconfig 2016-08-23 16:27:52 -04:00
eugene yokota 240781566e Merge pull request #2705 from eed3si9n/wip/new_command
Adds templateResolvers and `new` command
2016-08-23 03:17:40 -04:00
Eugene Yokota eaec623bbf Bump to Giter8 0.7.1 2016-08-23 00:45:17 -04:00
Eugene Yokota 456e4c2f54 straighten up dependencies 2016-08-22 18:20:32 -04:00
Eugene Yokota f29932e594 Fix parser for new command 2016-08-22 11:29:35 -04:00
Eugene Yokota 954e744408 Adds templateResolvers and `new` command
This adds `new` command, which helps create a new build definition. The
`new` command is extensible via a mechanism called the template
resolver,
which evaluates the arbitrary arguments passed to the command to find
and run a template.

As a reference implementation [Giter8][g8] is provided as follows:

    sbt new eed3si9n/hello.g8

This will run eed3si9n/hello.g8 using Giter8.

  [g8]: http://www.foundweekends.org/giter8/
2016-08-22 02:38:46 -04:00
eugene yokota 5b70e9f4e0 Merge pull request #2703 from milessabin/topic/scala-artifacts-fixed
Explicit list of artifacts for Scala binary version check
2016-08-20 07:32:23 -04:00
Miles Sabin 2d31681220 Explicit list of artifacts for Scala binary version check. Fixes #2701 2016-08-19 17:44:19 +01:00
eugene yokota bf7918f072 Merge pull request #2692 from eed3si9n/wip/2686
Fixes #2686 by resetting scalaVersion for updateSbtClassifiers
2016-08-05 11:56:15 -04:00
Eugene Yokota ca12418eb8 Fixes #2686 by resetting scalaVersion for updateSbtClassifiers
Ref #2634

updateSbtClassifiers uses an artificially created dependency graph set
in classifiersModule. The problem is that ivyScala instance is reused
from the outer scope that has the user project's scalaVersion as
demonstrated as follows:

    scala> val is = (ivyScala in updateSbtClassifiers).eval
    is: Option[sbt.IvyScala] =
Some(IvyScala(2.9.3,2.9.3,List(),true,false,true,org.scala-lang))

This change fixes #2686 by redefining ivyScala with scalaVersion and
scalaBinaryVersion scoped to updateSbtClassifiers task. The existing
scripted test was modified to reproduce the bug.
2016-08-05 01:21:06 -04:00
Eugene Yokota a98ec6b779 Bump to 0.13.12 2016-08-05 01:16:09 -04:00
eugene yokota 6c8555c5f1 Merge pull request #2681 from pauldraper/pauldraper-forked-test-group
Fix #2677: Tags.ForkedTestGroup doesn't work
2016-07-25 03:30:07 -04:00
eugene yokota e843957e7c Merge pull request #2682 from xuwei-k/aggregate
`aggregate` can now be used inside a .sbt file
2016-07-25 03:26:03 -04:00
xuwei-k b92e5773f7 `aggregate` can now be used inside a .sbt file 2016-07-25 12:07:49 +09:00
Paul Draper 0c9182a4b9 Fix #2677: Tags.ForkedTestGroup doesn't work
Move tag to correct task
2016-07-22 10:17:24 -06:00
Dale Wijnand b2731717fe Bump version to 0.13.13-SNAPSHOT 2016-07-18 10:21:52 +01:00
Eugene Yokota 4fe6b07033 launchconfig 2016-07-16 00:05:02 -04:00
Eugene Yokota 8074e6e533 0.13.12 2016-07-15 23:35:36 -04:00
eugene yokota 9ea9abf98d Merge pull request #2659 from dwijnand/log-recompile-on-macro-opt
Fixes #2654 Silence macro recompilation info message
2016-07-07 22:37:17 -04:00
Dale Wijnand 83075a90f5 Fixes #2654 Silence macro recompilation info message
As well as add a test for the macro recompilation info message feature.
2016-07-08 01:03:32 +01:00
Eugene Yokota cbcdbf44d3 Notes 2016-06-30 23:37:13 +02:00
Eugene Yokota 1f50eacc50 Notes 2016-06-30 14:34:37 +02:00
eugene yokota c07355883f Merge pull request #2653 from anatolydwnld/depends-on-build-sbt-two
dependsOn can now be used inside a .sbt file for a subproject
2016-06-30 14:29:44 +02:00
Anatoly Fayngelerin 182fc544f0 Merge branch '0.13' into depends-on-build-sbt-two 2016-06-30 08:13:34 -04:00
Eugene Yokota 8004649040 Notes 2016-06-30 13:37:47 +02:00
Anatoly Fayngelerin fcedd17270 dependsOn can now be used inside a .sbt file for a subproject 2016-06-29 17:20:28 -04:00
eugene yokota aa5d8c139d Merge pull request #2642 from eed3si9n/wip/2002
Fixes merged ModuleID dropping configuration specification.
2016-06-13 08:27:12 -04:00