Commit Graph

3648 Commits

Author SHA1 Message Date
Josh Suereth e95feccfca Fix pattern match on buildLoaders.
Fixes #1341
2014-05-16 07:41:29 -04:00
eugene yokota f402f9ac9e Merge pull request #1336 from sbt/wip/compile-with-2.11
Bump expected 2.11 module versions so we can compile with 2.11
2014-05-15 09:13:36 -04:00
Josh Suereth abffc3e1bd Bump expected 2.11 module versions so we can compile with 2.11
Add scala 2.11 test/build verification.

* Add 2.11 build configuratoin to travis ci
* Create command which runs `safe` unit tests
* Create command to test the scala 2.11 build
* Update scalacheck to 1.11.4
* Update specs2 to 2.3.11
* Fix various 2.11/deprecation removals
  and other changes.

Fix eval test failure in scala 2.11 with XML not existing.
2014-05-14 19:08:05 -04:00
eugene yokota 1d67d42da3 Merge pull request #1334 from sbt/wip/merge-0.13.5
Wip/merge 0.13.5
2014-05-14 09:06:09 -04:00
eugene yokota d1b6410c02 Merge pull request #1333 from sbt/wip/fix-derived-setting-tests
Fixed project/derived test to pass
2014-05-14 09:05:59 -04:00
Josh Suereth 81ae2fa582 Merge remote-tracking branch 'origin/0.13.5' into wip/merge-0.13.5
Conflicts:
	main/src/main/scala/sbt/EvaluateTask.scala
2014-05-13 19:31:44 -04:00
Josh Suereth ebab164a41 Disable failing derived test for now.
* Disable test of derived setting which depends on itself
* Not sure we even care about supporting that feature.
2014-05-13 18:27:22 -04:00
Josh Suereth 148b578681 Fix project load ordering to match 0.13.5 and previous.
* root project needs to be discovered FIRST in the list.
* All other rpojects come in the order they were seen.
2014-05-13 18:27:04 -04:00
Josh Suereth bb8bb1e667 Merge pull request #1328 from gkossakowski/cleanup-incremental-tests
Cleanup incremental tests
2014-05-13 14:52:47 -04:00
Josh Suereth d80a39b78f Merge pull request #1330 from pvlugter/cross-update-cache
Use separate update caches when cross compiling scala
2014-05-13 14:52:11 -04:00
eugene yokota d509ff83a1 Merge pull request #1332 from sbt/wip/disable-force-gc
Default force gc to false
2014-05-13 14:47:46 -04:00
Josh Suereth 015ccf2fae Modify changes with latest RC changes. 2014-05-13 13:56:25 -04:00
Josh Suereth 664d83ed0f Back out autogc fix to be optionally enabled.
Workaround for #1329
2014-05-13 13:14:39 -04:00
Peter Vlugter 7948fbafbc Use separate update caches when cross compiling scala 2014-05-13 16:14:30 +12:00
Grzegorz Kossakowski 658e1928cc Update comments in `inc-ant-style` scripted test.
I forgot to update comments after copy&pasting the test. The updated
comments describe what's being tested related to Ant mode.
2014-05-12 16:15:35 +02:00
Grzegorz Kossakowski 2ec6f5c589 Use new sbt syntax for defining `check-compilations` task.
Some scripted tests define `check-compilations` task. We can refactor them
to be more readable by using new `.value` syntax.
2014-05-12 16:11:49 +02:00
Eugene Yokota d84f729b39 Updated on Changes.rst 2014-05-09 15:30:39 -04:00
eugene yokota 066a12cd2a Merge pull request #1320 from sbt/wip/bump-root-version
Bump version number for next bout of development.
2014-05-09 11:28:35 -04:00
Grzegorz Kossakowski 53555a8e04 Merge pull request #1319 from gkossakowski/name-hashing-for-sbt-itself
Enable name hashing algorithm in sbt build.
2014-05-09 16:51:07 +02:00
Josh Suereth 979f5d615b Merge pull request #1317 from gkossakowski/ant-style-inc
Add Ant-style incremental compilation mode
2014-05-09 08:50:42 -04:00
Josh Suereth 4fbd376afb Merge pull request #1318 from sbt/topic/1314
Check for object autoImport in auto plugins.
2014-05-09 08:43:24 -04:00
Josh Suereth 98ed08a976 Bump version number for next bout of development. 2014-05-09 08:32:55 -04:00
Grzegorz Kossakowski 436e7078fb Enable name hashing algorithm in sbt build.
The name hashing seems to be stable enough for sbt to use it by default
now. It also greatly improves incremental compilation experience for
people working on sbt sources.
2014-05-09 14:18:46 +02:00
Eugene Yokota 2b621869fc Check for object autoImport in auto plugins. Fixes #1314 2014-05-08 21:54:04 -04:00
Grzegorz Kossakowski 680713f666 Add Ant-style incremental compilation mode.
This commit implements an Ant-style incremental compilation mode. This mode
emulates what Ant's scalac command does. It recompiles just changed source
files and does not perform any invalidation of dependencies.
This is a very naive mode of incremental compilation that very often leads
to broken binaries.

The Ant-style mode is being introduced because Scala team needs it for
migration of Scala compiler to sbt. The name hashing algorithm doesn't
work well with Scala compiler sources due to deep inheritance chains.
There's a plan to refactor compiler's code to use more composition instead
of inheritance.

Once Scala compiler sources are refactored to work well with name hashing
algorithm, Ant-style mode will be deleted immediately.
2014-05-08 20:29:02 +02:00
Grzegorz Kossakowski ba88236b31 Add `antStyle` to IncOptions.
Add an option that enables (to be implemented) Ant-style mode of
incremental compilation.

This option is unsupported and may go away at any point in the future.

NOTE: Either `antStyle` or `nameHashing` mode can be enabled. This is
being enforced with runtime assertion.
2014-05-08 20:28:16 +02:00
Grzegorz Kossakowski 0cbbe8c2ed Add pending scripted test for Ant-style compilation.
Add pending test for Ant-style incremental compilation. In that mode
incremental compiler will recompile only the source files that were changed
by the user and won't try to invalidate any dependencies.

Once Ant-style incremental compilation is implemented this test should be
passing.
2014-05-08 20:28:16 +02:00
eugene yokota 3b1d63d0c9 Merge pull request #1312 from sbt/wip/dsl-enable-plugins
Expand the DSL abilities with Project manipulations
2014-05-08 14:25:17 -04:00
Josh Suereth dd263341fa Bump travis memory settings. 2014-05-08 07:36:41 -04:00
Josh Suereth f579e90ea0 Add test confirming that multiple.sbt files can contribute to enable/disablePlugin DSL. 2014-05-07 12:51:20 -04:00
Josh Suereth af1c581cbb Rework sbt's loading mechanism to allow `ProjectManipulation` DSL entries to take effect.
This does the following:

* Fragments loading into two stages:  Discovery + Resolution
* Discovery just looks for .sbt files and Projects, while
  loading/compiling them.
* Resolution is responsible for taking discovered projects and
  loaded sbt files and globbing everything together.  This includes
  feeding the project through various manipulations, applying
  AutoPlugin settings/configurations and ordering all the settings.
* Add a bunch of docs
* Add direct DSL `enablePlugins` and test
* Add direct DSL `disablePlugins` and test.
2014-05-07 12:35:17 -04:00
Josh Suereth 746583e718 Alter the DSL slightly to use explicit DslEntry types for settings.
* Create new DSLEntry type for settings so we can categorize what we parse
* Use DSLEntry to help solve the Setting[_] vs. Seq[Setting[_]] implicit fun.
* Hack away any non-Setting[_] DSLEntry for now.
* Add test in build.sbt to make sure the new DSL works.
2014-05-07 12:35:17 -04:00
eugene yokota d198ea4099 Merge pull request #1316 from sbt/wip/fix-broken-build
This doesn't quite fix the build, but gets closer
2014-05-07 12:23:09 -04:00
Josh Suereth e00325aeec Expand travis with all working unit tests. 2014-05-07 12:00:04 -04:00
Josh Suereth d034561083 Scalariformed project/Sbt.scala 2014-05-07 11:52:49 -04:00
Josh Suereth 244abd3b6f Scalariforming test code 2014-05-07 11:52:23 -04:00
Josh Suereth 39b68a2dfd Bring scala provider test to modern age of scala releases. 2014-05-07 11:48:45 -04:00
Josh Suereth b0018c0a42 Fix travis quote issues. 2014-05-07 11:45:45 -04:00
Josh Suereth 5d5d7a6c05 Add the ability to paginate scripted tests.
* Modify scripted task parser to allow "pagination" of globs
  e.g.  "*1of3" will create three pages and run page 1.
* Modify travis definition to fragment long-running test groups
  into pages so we stay under the 50 minute limit.
2014-05-07 11:06:26 -04:00
Josh Suereth 8d3efea45d Merge pull request #1313 from 2m/inspect-sort-keys
Sort setting key names in the inspect tree view
2014-05-07 10:26:24 -04:00
Josh Suereth 8e70aa4e93 Add missing scripted tests to configuration. 2014-05-07 09:44:14 -04:00
Martynas Mickevicius f11d3dbce4 Sort setting key names in the inspect tree view. 2014-05-07 14:32:10 +02:00
Josh Suereth aa4ee809e5 Merge pull request #1308 from sbt/wip/moreformatting
some more source getting formatted
2014-05-03 13:19:53 -04:00
Josh Suereth efaa0f9e45 Merge pull request #1307 from xuwei-k/remove-unnecessary-var
remove unnecessary var
2014-05-03 13:19:19 -04:00
Eugene Yokota 785b0274ee some more source getting formatted 2014-05-02 18:07:05 -04:00
xuwei-k 25b22f951a remove unnecessary var 2014-05-03 06:01:13 +09:00
Josh Suereth 68e7c9a2b6 Merge pull request #1304 from sbt/wip/scalariform
scalariform
2014-05-01 19:22:41 -04:00
Eugene Yokota adb41611cf added scalariform 2014-05-01 12:50:07 -04:00
Eugene Yokota b730c00b75 sbt 0.13.2 2014-05-01 12:05:52 -04:00
eugene yokota c3af4b7450 Merge pull request #1036 from dansanduleac/derivedSettings
Allow derived settings to replace previously-defined but non-default settings
2014-05-01 11:53:42 -04:00