Josh Suereth
2d3f57ad51
Fix the run logic so the mainClass setting is actually used when set.
2014-10-25 14:25:30 -04:00
Josh Suereth
b834be8bfa
Merge pull request #1669 from kretes/1648-warn-about-main-classes
...
Fix for https://github.com/sbt/sbt/issues/1648 - warn about multiple or no main classes
2014-10-23 07:37:07 -04:00
Eugene Yokota
7827682f41
Remove DefDef and check rhs
...
- lhs pattern matching occurs only for vals.
- def also breaks due to proc notation.
- instead of pretty printing, we can just check rhs.
2014-10-22 19:14:47 -04:00
Tomasz Bartczak
7a1a21d8c8
Fix for sbt#1648 - warn when no or multiple main classes
2014-10-22 22:42:01 +02:00
Eugene Yokota
97584457fa
merged #1662
2014-10-21 12:18:54 -04:00
andrzej.jozwik@gmail.com
6f9dfcce52
Revert brackets for backward compatibility (binary compatibility), addExplicitXmlContent use pattern matching, splitFile - does not return whitespace statements
2014-10-19 23:54:18 +02:00
andrzej.jozwik@gmail.com
8c0e400c11
Add ; instead of brackets to xml group
2014-10-17 22:23:20 +02:00
andrzej.jozwik@gmail.com
ef74db7319
Revert to previous version.
2014-10-14 11:24:12 +02:00
andrzej.jozwik@gmail.com
ddc80357dc
Add scala-stm file for unit test.
2014-10-14 08:30:20 +02:00
andrzej.jozwik@gmail.com
50ed84b748
Use original function
2014-10-13 22:53:45 +02:00
andrzej.jozwik@gmail.com
f1ab893f98
Fixed #1666 - check from last end of line.
2014-10-13 22:49:26 +02:00
Josh Suereth
d7c76aabf1
Merge pull request #1663 from sbt/wip/avoid-deprecated
...
enable -deprecation for Scala 2.10
2014-10-12 12:31:08 -04:00
Josh Suereth
5599b53692
Merge pull request #1653 from sbt/wip/fix-1649
...
Fixes #1649 . Exclusion rules and other cached resolution fixes
2014-10-12 12:01:22 -04:00
Eugene Yokota
3f958a5bce
enable -deprecation for Scala 2.10
...
Enable -deprecation flag to catch old code being use when we migrate
things.
In this commit I moved error to sys.error.
2014-10-10 15:42:26 -04:00
Josh Suereth
ddf8a173b0
Disable pattern matching in val syntax in sbt 0.13.7.
...
Fixes #1661 or at least works around it for now.
2014-10-10 13:47:02 -04:00
Eugene Yokota
8ddff28a9e
Fixes #1660
...
Provide overloads for transitiveScratch and updateClassifiers that work
with IvyActions.updateEither.
2014-10-10 00:34:05 -04:00
Eugene Yokota
09bca754b5
Fixes #1639 . Fixes cached resolution interacting with force()
...
When conflicts are found for a given module, a forced one
is selected before conflict manager kicks in.
The problem is that DependencyDescriptor seems to mark transitive
forced dependency as forced as well,
so the actual forced dependency are sometimes not prioritized.
To work around this, I’ve introduced a mixin called
SbtDefaultDependencyDescriptor, which carries around ModuleID to detect
direct dependencies.
2014-10-09 13:11:13 -04:00
Josh Suereth
89a3e4982f
Add escape hatch to old parser in case we run into problems.
...
Just make sure users have the means to still build in case there's any
issues we missed. This code should be removed in sbt 1.0.
2014-10-08 15:00:48 -04:00
eugene yokota
0f2c6f89a1
Merge pull request #1645 from sbt/wip/no-blankies-rebased
...
Natural whitespace handling for SBT configuration parser AKA 'no more blankies'
2014-10-06 14:27:50 -04:00
Eugene Yokota
5afb9e1af7
Fixed json serialization turning license into {}.
2014-10-05 04:24:22 -04:00
Josh Suereth
009426d896
Documentation and renaming of "blankies" into somethign a bit easier to find.
...
* Rename SPlitExpression* to `SbtParser` denoting that is parses .sbt files
* Adds a few todos
* Document APIs for internal usage.
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
e230a17d3b
@deprecated("Removed from the public API", "2.11.0") def isDefined: Boolean
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
a67c5fd187
Comments #1630
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
97a96d5bf8
Split to small methods
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
dac3edb546
Split to small methods
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
963e75d182
Fixed #1630 . Remove last line if last statement is being removed
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
2a603da0a8
Moved tests to internal package
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
9294351e24
#1628
2014-10-03 14:22:52 -04:00
Josh Suereth
48be806dd4
Adding scaladoc commnets for SessionSettings, and fixing type in check file.
2014-10-03 14:22:51 -04:00
Josh Suereth
a8370880e0
Remove binary compatibility breakages and migrate new parser features into an internal package.
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
2019c6da62
findMissingText now searchs recursive
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
742188393b
Cut valid text corrected
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
232c28ecd1
Handle xml content in session save
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
c720a973a6
Corrections for "session save"
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
4a33fd2225
Extract method - for new implementation. Not completed yet.
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
eab7049479
Comments fixed #1574
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
8da8fefc68
Natural whitespace handling for SBT configuration parser AKA 'no more blankies'
2014-10-03 14:22:51 -04:00
Eugene Yokota
fe8d290c17
Implemented cached resolution (minigraph caching)
2014-09-29 17:33:37 -04:00
Jacek Laskowski
627956901b
Small scaladoc fixes
2014-09-28 23:27:59 +02:00
Josh Suereth
d865251686
Add workaround (and warning message) for when ChainResolver gets a null publication date while we investigate other issues.
...
* Attempt to set publication date to last modified time, if the stars align
* Issue warning about undefined resolution behavior otherwise
* Add scripted test which exercises the NPE issue in resolving -SNAPSHOTs.
* Commit scalariform style edit in Act.scala
* After parsing and transforming the pom, check for pub date.
* If we don't have a pub date, try to grab lastModified from the URL
* If we can't do anything, issue a warning about the problem artifact.
2014-09-24 18:23:15 -04:00
Josh Suereth
d2a18926b0
Merge pull request #1613 from jedesah/topic/remove-warnings
...
Remove compiler warnings
2014-09-24 09:10:35 -04:00
Jean-Rémi Desjardins
2eb8fd1b8a
Merge branch '0.13' of github.com:sbt/sbt into 0.13
2014-09-16 09:20:21 -07:00
Jean-Rémi Desjardins
b754c04a30
Add missing default option
2014-09-15 10:02:08 -07:00
Antonio Cunei
9b94a16b73
Undone the revert on the optimization, and fixed setAll()
...
The optimization, and therefore the change in the behavior
of Relation, is now needed by the class Logic, and cannot
be reverted.
This patch (written by Josh) therefore changes the
implementation of setAll() so that _1s is no longer used.
2014-09-12 20:51:04 +02:00
Jean-Rémi Desjardins
ff9baf5987
Merge branch 'refs/heads/0.13' into topic/remove-warnings
2014-09-10 23:24:53 -07:00
Jean-Rémi Desjardins
3ea995225f
Merge branch '0.13' of github.com:sbt/sbt into 0.13
2014-09-10 22:56:01 -07:00
Jean-Rémi Desjardins
ced5230289
Remove some compiler warnings
2014-09-10 22:55:43 -07:00
Jean-Rémi Desjardins
183c2bcfe2
Add developers keySetting
...
The motivation for this is mainly to avoid having to define a pomExtra to publish to Maven central
2014-09-10 20:18:28 -07:00
Josh Suereth
0f88b7a4f3
Merge pull request #1584 from sbt/wip/fix-test-classloader-issues
...
Fix issues with specifying scalaHome/scalaInstance and running tests
2014-09-10 12:26:15 -04:00
Josh Suereth
fa36d0e290
Add missing `configs` method from Project to the build.sbt DSL.
...
* Create `configs` method for the sbt DSL
* Add ProjectManipulation for this method to implement.
2014-09-09 08:54:43 -04:00