Commit Graph

766 Commits

Author SHA1 Message Date
Eugene Yokota d86b66454d Fix tests 2018-08-21 10:37:04 -04:00
Eugene Yokota 0409173d56 use http for scripted tests 2018-08-20 21:29:45 -04:00
Eugene Yokota 287f0a80a7 Update more Scala versions in scripted test 2018-01-04 01:54:09 -05:00
Eugene Yokota 881e810ce2 Update actions/* for JDK 9 2017-11-06 01:16:28 -05:00
Dale Wijnand d864b066a3
sbt 0.13.16
Tweaked the dependencies due to #3458.

Also workaround a brand-new Travis CI issue.

And mark fork-parellel/test pending.. to merge this thing
2017-09-08 17:06:23 +01:00
eugene yokota 96ddc33a3e Merge pull request #3397 from dwijnand/sbt-plugin-cross-version
Fix addSbtPlugin to use the correct version of sbt
2017-08-08 13:09:56 -04:00
Dale Wijnand 2fc0a6a571
Fix addSbtPlugin to use the correct version of sbt
Fixes #3393
2017-08-08 15:09:12 +01:00
Dale Wijnand a93970c8ec
Dedup check task in project/cross-plugins-defaults 2017-08-08 15:09:11 +01:00
Dale Wijnand 684e2c3692
Drop the exec permission on random source files 2017-08-04 11:13:40 +01:00
Eugene Yokota 23bfcf58a5 Fix ^^ and don't inject scalaVersion by default
This no longer injects scalaVersion at the project level, which was interfering with crossScalaVersions delegation to ThisBuild scope.

Fixes sbt/sbt#3353
2017-07-25 13:05:40 -04:00
Eugene Yokota e80caa20a2 Add an alias for Global called Zero
Ref sbt/sbt#3178
2017-05-07 23:36:09 -04:00
James Koch ecf14d6ad5 Issue #3154 - ScalaTest nested suites reported in JUnit XML reports as "(It is not a test)". 2017-04-30 13:16:23 -04:00
Dale Wijnand 4ab11d7948 Merge pull request #3133 from eed3si9n/wip/sbtcrossbuilding
[sbt 0.13] Port sbt-cross-building's ^ and ^^ commands
2017-04-24 13:06:03 +01:00
Eugene Yokota 90bda04695 Fix += interference with sbt-buildinfo
The macro pattern match was too general. This makes it tighter.

Fixes #3132
2017-04-22 22:59:33 -04:00
Eugene Yokota ff017eb475 Port sbt-cross-building's ^ and ^^ commands
This ports sbt-cross-building's cross (`^`) and switch (`^^`) commands.
Instead of making it a plugin, the default settings are now changed
to use `sbtVersion in pluginCrossBuild` for the sbt dependency.
2017-04-22 06:04:56 -04:00
Lars Hupel 7c2d753ab6 test case for package target check 2017-03-14 16:34:45 +01:00
Dale Wijnand bce9679ce7 Merge pull request #2993 from eed3si9n/wip/offline_boot
[sbt 0.13] Add local-preloaded repo
2017-03-08 17:27:00 +00:00
Eugene Yokota 0500959003 Add local-preloaded repo 2017-03-08 09:00:22 -05:00
Eugene Yokota 54564ba7ce Maven version range improvement
Previously, when the dependency resolver (Ivy) encountered a Maven version range such as `[1.3.0,)`
it would go out to the Internet to find the latest version.
This would result to a surprising behavior where the eventual version keeps changing over time
*even when there's a version of the library that satisfies the range condition*.

This changes to some Maven version ranges would be replaced with its lower bound
so that when a satisfactory version is found in the dependency graph it will be used.
You can disable this behavior using the JVM flag `-Dsbt.modversionrange=false`.

Fixes #2954
Ref #2291 / #2953
2017-02-10 04:00:04 -05:00
Eugene Yokota 70a2878dbc Adds an Append instance that extracts taskValue
This adds a macro-level hack to support += op for sourceGenerators and resourceGenerators using RHS of Initialize[Task[Seq[File]]].
When the types match up, the macro now calls `.taskValue` automatically.
2017-01-22 23:44:48 -05:00
Dale Wijnand c6d3bbacfa
Migrate actions/depends-on to fix it
Seems following the deprecation warning info and the website
documentation and avoiding the BuildCommon inputTask method avoids
whatever problem was causing it to fail... Strange.. but ok?
2017-01-13 14:26:54 +00:00
Dale Wijnand 2404d609ce
Fix runBefore with := 2017-01-13 14:26:53 +00:00
Dale Wijnand 9bad462f7a
Fix triggeredBy with :=
Fixes #1444
2017-01-13 14:26:53 +00:00
Guillaume Martres 47148f3fde snapshot-resolution: add a sleep to ensure timestamp change
This test suddenly started failing for no reason at line 25, adding this
sleep seems to have fixed that. Every other publish was preceded by a
sleep in this test, so this makes some sense.
2017-01-09 03:52:00 +01:00
Guillaume Martres 89d5e96ed0 Add testcase for scala bootstrap
Before the previous commit, this failed with:
[error] (*:update) java.lang.IllegalArgumentException: a module is not
authorized to depend on itself: org.foo#scala-library;2.99.0
2017-01-08 23:03:18 +01:00
Eugene Yokota 00bab7b743 Add build-level keys to the tab completion
Fixes #2460
Fixes #2851
Ref #2707, #2708, #2469

Unlike the previous attempts at fixing the handling of build-level
keys, this change does not change the main parsing logic, which uses
`getKey` to retrieve the key from the key map.
The fact that shell worked pre-0.13.11 means that the parsing was ok.

What this changes is just the "example" keys supplied to the parser so
the tab completion works.
2016-11-30 02:33:05 -05:00
Eugene Yokota 8d0e4d2ef0 Apply scalaVersion enforcement to Compile related configs
Fixes #2786. Ref #2634.

sbt 0.13.12 added Ivy mediator that enforces scalaOrganization and
scalaVersion for Scala toolchain artifacts.
This turns out to be a bit too aggressive because Ivy configurations
can be used as an independent dependency graph that does not rely on
the scalaVersion used by Compile configuration. By enforcing
scalaVersion in those graph causes runtime failure.

This change checks if the configuration extends Default, Compile,
Provided, or Optional before enforcing scalaVersion.
2016-11-11 05:15:58 -05:00
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 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
Dale Wijnand c6527b0665 Test throwing in Test#execute too 2016-09-02 15:39:09 +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 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 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
Martin Duhem 5ed3ce7279 Scripted test for build level keys. 2016-08-25 15:59:43 +02: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 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 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
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 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
Anatoly Fayngelerin fcedd17270 dependsOn can now be used inside a .sbt file for a subproject 2016-06-29 17:20:28 -04:00
Miles Sabin e98b2363c2 Override scala organization and version transitively at the Ivy level. Fixes #2286. 2016-06-02 12:07:30 +01:00
Eugene Yokota 81bff4b67b Marking dependency-management/url pending
The actual URL doesn't work any more, so marking this pending.
2016-05-25 03:58:15 -04:00
eugene yokota 1880173c7c Merge pull request #2557 from smarter/simplify/value-class
[BPORT] Simplify value class API handling and fix #2497
2016-05-04 11:01:40 -04:00