Commit Graph

323 Commits

Author SHA1 Message Date
eugene yokota 8749a969c3 Merge pull request #2297 from sbt/wip/fix-2264
Fixes #2264. Fixes updateClassifiers when default configuration is missing + uses listed artifacts if any
2015-12-03 02:11:52 -05:00
Eugene Yokota 3a3965b5f5 Fixes #2264. Use explicit artifacts if any, fallback to hardcoded
Even though it's not really used, updateClassifiers constructs
dependency graph based on the result from update.
The direct cause of #2264 came from the fact that the `allModules`
returned from ConfigurationReport did not include dependency
configurations. For example it returned "compile" instead of
"compile->runtime". I've identified that in #2264 and was fixed by
@Duhemm in f49fb33e6d.

Martin identified that the fix still does not address the fact that
updateClassifier hardcodes the classifiers to be tried. This commit
adds the fallback behavior so for Ivy-published modules it will use the
explicit list of artifacts, and for others it will fallback to the
hardcoded list of classifiers.
2015-12-02 16:41:02 -05:00
eugene yokota c5b7fc1d9c Merge pull request #2272 from Duhemm/fix-1968
Don't pass `-J<flag>` to local java, improve javac's error parsing
2015-11-27 15:37:16 -05:00
Dale Wijnand f270cd2a5c Add Resolver.bintrayIvyRepo 2015-11-25 09:26:58 +00:00
Martin Duhem a8d644eb45 Merge branch '0.13' into fix-1968 2015-11-12 09:15:47 +01:00
eugene yokota 222623071a Merge pull request #2271 from Duhemm/fix-2228
Report failed compilation if errors are registered.
2015-11-12 02:14:08 -05:00
Martin Duhem 5934350aa2 Notes for #2261 2015-11-11 14:55:52 +01:00
Martin Duhem 590c4d07ef Notes for sbt/sbt#2272 2015-11-11 14:41:26 +01:00
Martin Duhem e19ca7bf85 Notes for sbt/sbt#2271 2015-11-11 14:30:05 +01:00
Huw Giddens cbeaba0ccd Update per the changes since August. 2015-11-11 21:35:57 +11:00
Martin Duhem 26e15c2dd4 Add notes for #2258 2015-10-28 16:05:45 +01:00
Dale Wijnand 397c25679f Add notes for #1750. 2015-08-28 23:38:49 +01:00
Josh Suereth da8bb5b621 Merge pull request #2151 from dwijnand/add-Def.settings
Extract Def.settings from Project#settings.
2015-08-25 09:52:27 -04:00
Huw Giddens 68330d042a Add notes for PR. 2015-08-24 18:36:26 +10:00
Dale Wijnand 786dc7fd10 Add notes for MavenRepository.localIfFile. 2015-08-23 17:33:19 +01:00
Dale Wijnand dcbbc531ed Add notes for PR 2151. 2015-08-20 18:45:42 +01:00
Dale Wijnand a432c3def1 Merge remote-tracking branch 'origin/0.13.9' into merge-0.13.9-into-0.13
* origin/0.13.9:
  Notes
  0.13.9
  cached resolution: use mutable map to speed up breakLoops
  cached resolution: don't include callers from evicted modules
  Add debug logs
  Fixes #2129. break up circular dependency loops in cached resolution
  try breaking circular dependency and continue sorting
  refactored to use less stack space
  make sortModules tailrec
  Reproduce stack overflow using cached resolution with circular dependency
2015-08-11 22:42:31 +01:00
Eugene Yokota 946ee17081 Notes 2015-08-11 17:24:55 -04:00
Eugene Yokota 431a90264d Fixes #2129. break up circular dependency loops in cached resolution
Simple remove-one method to workaround for circular dependency did not
work. This fix traverses the entire graph to detect all loops and then
breaks them up.
2015-08-03 07:31:32 -04:00
Josh Suereth f3b5bcc02b Merge pull request #2127 from sbt/wip/warn-on-intransitive-pom
Add warning to MakePom for intransitive dependencies.
2015-07-25 08:23:09 -04:00
Josh Suereth 92acfe1287 Fixes from review 2015-07-24 12:48:11 -04:00
Josh Suereth 9beff22d9a Add warning to MakePom for intransitive dependencies.
Intransitive does not work in Maven, and does not translate to pom.xml.
2015-07-24 10:42:49 -04:00
Josh Suereth bad1e9d487 Add handling for transitive exclude rules in pom.xml files.
Fixes #2109

* Add maven resolver tests back to travisCI
* Disable ivy.xml translation test from maven-repository-resolver config, due to incorrect assumptions.
2015-07-23 15:32:27 -04:00
eugene yokota c703b2a6a0 Merge pull request #2116 from sbt/0.13.9
Merge 0.13.9 back into 0.13
2015-07-18 13:36:04 -04:00
Josh Suereth d0e918d6d3 Merge pull request #2114 from pdalpra/add-append.sequence-list
Add an Append.Sequence instance for List
2015-07-18 07:05:59 -04:00
Pierre DAL-PRA 10c71b3f8a Add an Append.Sequence instance for List, fixes #2107 2015-07-18 10:51:31 +02:00
Eugene Yokota 7eb7df017e Fixes #2105/#1763. Cached resolution: removes duplicate callers during merge 2015-07-18 02:17:25 -04:00
Pierre DAL-PRA f944ec98d2 Log javaOptions/fork interactions:
- When forking, log the javaOptions that are used
- When javaOptions are defined but fork := false, warn that javaOptions
	will be ignored
2015-07-18 00:37:35 +02:00
eugene yokota 5824ef6d7f Merge pull request #2106 from Duhemm/interface-specific-sources-clean
Find most specific version of compiler interface sources
2015-07-17 10:25:16 -04:00
fkorotkov c73f513016 review comments 2015-07-16 15:49:06 -04:00
fkorotkov a6f83dda97 added a note 2015-07-16 15:23:24 -04:00
Dale Wijnand 5428c07420 Move PR 2085 notes. 2015-07-16 16:24:45 +01:00
Martin Duhem 3195d7256e Notes 2015-07-16 15:46:14 +02:00
Josh Suereth 4abc8386f2 Merge pull request #2085 from twitter-forks/stuhood/java-static-final-fields-as-singletons
Encode static-final constant fields as Singletons
2015-07-14 12:35:56 -04:00
Stu Hood e3ba86fdbb Add notes for the change 2015-07-13 21:38:48 -07:00
eugene yokota 67d908a4a6 Merge pull request #2101 from sbt/0.13.9
merge 0.13.9 on 0.13
2015-07-10 16:07:05 -04:00
Eugene Yokota 0b718bb3fa notes 2015-07-10 11:40:38 -04:00
Pierre DAL-PRA ea0abefac9 Add notes 2015-07-09 23:45:01 +02:00
Martin Duhem 6c123f22ba Hide stacktrace on compilation error in build definition 2015-07-09 11:40:02 +02:00
Eugene Yokota a9f0a16486 Merge notes 2015-06-28 22:06:52 -04:00
eugene yokota f44f4540db Merge pull request #2079 from sbt/wip/distinct-rename
Fixes #1973. Renames distinct to distinctName
2015-06-28 21:58:46 -04:00
Eugene Yokota 16b95a4d62 Add distinctPath 2015-06-28 14:41:32 -04:00
Dale Wijnand 81524b1b6a Add notes for #2008/#2009. 2015-06-28 12:22:38 +01:00
Eugene Yokota 4bae8b3acb Fixes #1973. Renames distinct to distinctName 2015-06-27 05:56:43 -04:00
Eugene Yokota f0dbbe15b0 Release note for #2075/#2005 2015-06-27 05:38:24 -04:00
Eugene Yokota 81f175ddbf Fixes #1666 2015-06-20 00:51:42 -04:00
Josh Suereth 0c1d07dde7 Merge pull request #2006 from jroper/run-input-task
Added Extracted.runInputTask
2015-06-17 10:12:51 -04:00
James Roper 3625ce5943 Added Extracted.runInputTask
This provides a convenience function for running an input task from the
extracted state. This is particularly useful for commands, release steps
etc that may want to run input tasks, like scripted.
2015-06-10 16:09:09 +02:00
Eugene Yokota 558585c88f Fix links 2015-06-10 10:54:28 +02:00
Eugene Yokota 97956ac9eb Notes 2015-06-09 18:10:45 +02:00
Eugene Yokota d75c748a8b Merge notes 2015-06-09 17:49:53 +02:00
Josh Suereth 5bf5fbee31 Adding notes 2015-05-29 16:16:05 -04:00
Dale Wijnand bbfbdde427 Add notes for project-level excludes in the POM. 2015-05-28 08:15:12 +01:00
Josh Suereth 58db4873b2 Merge pull request #2036 from kamilkloch/2028-fork-error
Updated ForkError.getMessage() to include exception's original name.
2015-05-27 18:45:25 -04:00
Josh Suereth e05b747fdd Merge pull request #2027 from cunei/wip-fix-2001
Do not emit in the pom dependencies that are only sources or docs
2015-05-27 18:43:50 -04:00
Antonio Cunei d14afcf67d Adding notes for 2001/2027 2015-05-26 23:48:05 +02:00
Kamil Kloch cd3af2f0cd Updated ForkError.getMessage() to include exception's original name. 2015-05-25 13:50:56 +02:00
Josh Suereth d63775451c Merge pull request #2025 from PanAeon/panaeon/fix-history
Prevent history command(s) from going into an infinite loop
2015-05-24 13:19:41 -04:00
Eugene Yokota e22d84e312 Cached resolution: Clean up old dynamic minigraphs. Fixes #2014
Cached resolution saves dynamic mini graphs (including subproject
graphs) timestamped to the logical clock (State).
This enables graph caching across the subprojects.
On the other hand, it creates garbage that becomes stale almost
immediately. Prior to #2030 fix, this garbage would reach 1GB+.
This fix timestamps these graphs using calendar date, and cleans them
up after a day.
2015-05-23 03:25:26 -04:00
Josh Suereth 4519e71e22 Merge pull request #2017 from ajsquared/0.13
Add forceUpdatePeriod
2015-05-22 10:00:41 -04:00
Eugene Yokota af6c774f46 notes 2015-05-21 23:19:42 -04:00
Vitalii Voloshyn 54081fb4e4 Prevent history command(s) from going into an infinite loop [1562] 2015-05-18 13:33:31 +03:00
Andrew Johnson 7c0f455c79 Use FiniteDuration to represent time rather than a long 2015-05-13 14:18:27 -04:00
Andrew Johnson 32b1f65503 Update note 2015-05-13 08:04:44 -04:00
Andrew Johnson 4ec092617f Add forceUpdateMs 2015-05-13 08:02:48 -04:00
Dale Wijnand 5e8907d1e8 Add notes for #1970 - Test exclude filter. 2015-05-11 22:05:41 +01:00
eugene yokota c1952698e4 Merge pull request #2000 from dwijnand/command-to-string
Implement SimpleCommand.toString. Fixes #1998.
2015-05-07 10:45:16 -07:00
Dale Wijnand 97ed5822c7 Implement SimpleCommand.toString. Fixes #1998. 2015-05-05 09:11:52 +01:00
Eugene Yokota 8aca4e8fa6 Force GC on cross building 2015-05-04 23:49:36 -04:00
Eugene Yokota d82fe46052 Fixes #1223. Uses JMX to find out when to force GC. 2015-04-30 14:53:50 -04:00
eugene yokota 1ebe3804b3 Merge pull request #1992 from dwijnand/cross-scala-versions-default
Fix crossScalaVersions default, derived from scalaVersion. Fixes #1828.
2015-04-29 05:08:40 -07:00
Dale Wijnand 3d85c7c9e2 Tweak crossScalaVersions default notes. 2015-04-29 13:05:04 +01:00
Dale Wijnand efe4fdf9e4 Move "New crossScalaVersions default value" to fix with compatibility implications. 2015-04-28 22:51:07 +01:00
eugene yokota 27bd275343 Merge pull request #1989 from dwijnand/inThisBuild
Add inThisBuild, similar to inConfig. Fixes #1847
2015-04-26 18:58:12 -07:00
eugene yokota d0fbd10852 Merge pull request #1987 from ajsquared/0.13
Add configurationsToRetrieve
2015-04-26 18:54:32 -07:00
Dale Wijnand 116c1e1e8b Fix crossScalaVersions default, derived from scalaVersion.
Fixes #1828.
2015-04-26 17:06:59 +01:00
Dale Wijnand 1aff36d505 Add help message for `inspect actual`. Fixes #1651. 2015-04-26 03:18:29 +01:00
Dale Wijnand 677c33611a Add inThisBuild, similar to inConfig. Fixes #1847 2015-04-25 20:39:59 +01:00
Andrew Johnson b617b41ae1 Support configuring a subset of configurations from which to retrieve dependencies when retrieveManaged is true 2015-04-23 12:49:45 -04:00
Dale Wijnand 56f7e0c4b5 Fix typo in debug-removed-products notes 2015-04-15 23:01:54 +01:00
James Roper 18fb684143 Update incremental compile debug message
sbt 0.13.1 was changed so that products were invalidated
not just when they were deleted, but also when they were
modified, however the debug message was not updated to
reflect this, causing people to think invalidated class files
had been deleted.
2015-04-15 14:29:10 +10:00
eugene yokota 203c77c43a Merge pull request #1960 from asflierl/0.13
Honor overwrite flag when publishing locally.
2015-04-14 11:54:10 -07:00
Andreas Flierl 78642cb0ce Honor overwrite flag when publishing locally. 2015-04-10 13:29:26 +02:00
Andrew Johnson e647234743 Add retrieveManagedSync 2015-03-31 10:59:41 -04:00
Eugene Yokota 3159ce1063 Adds note to on #1940 2015-03-25 18:11:36 -04:00
eugene yokota a6a57b5993 Merge pull request #1935 from sbt/wip/nine
Merging 0.13.8 and bumping up to 0.13.9-SNAPSHOT
2015-03-25 06:12:46 -07:00
Eugene Yokota 98e13cc0a7 Notes on #1921 2015-03-18 11:28:19 -07:00
Dale Wijnand ae193d568f Move adding -=/--= notes to 0.13.9. 2015-03-17 09:44:29 +00:00
Dale Wijnand 72ee03ef13 Fix another(..) typo in notes. 2015-03-16 23:53:18 +00:00
Dale Wijnand a4b6d07efa Fix a typo in notes. 2015-03-16 23:50:46 +00:00
Dale Wijnand 17a1179e5b Add -= & --= for setings & keys, dual of += & ++=. 2015-03-16 23:44:38 +00:00
Dale Wijnand 522371ad8a Fix a type in 0.13.8 notes formatting. 2015-03-10 06:22:11 +00:00
Eugene Yokota b5e88f66eb Move notes around 2015-03-09 22:51:50 -04:00
Eugene Yokota 9f456bdd18 Merge notes 2015-03-09 21:50:57 -04:00
eugene yokota b4a5265aaa Merge pull request #1902 from dwijnand/define-project-settings-with-SettingsDefinition
Define Project.settings with SettingsDefinition.
2015-03-09 10:48:18 -04:00
Dale Wijnand 82c599d907 Add notes about Project.settings enhancements. 2015-03-08 10:33:28 +00:00
eugene yokota d344a833d5 Merge pull request #1899 from dwijnand/fix/1818/exempt-scala-actors-migration
Exempt scala-actors-migration from version checks.
2015-03-07 16:30:25 -05:00
Dale Wijnand 7ab42435b3 Exempt scala-pickling as well. 2015-03-06 22:29:58 +00:00
Dale Wijnand e9b5020e83 Add PR to notes. 2015-03-04 07:47:27 +00:00
Dale Wijnand 8f3a7b4f5b Exempt scala-actors-migration from version checks.
Fixes #1818.
2015-03-04 07:45:36 +00:00
Eugene Yokota 3786e5ddf4 Transitively evict modules when callers are evicted. Fixes #1760 2015-03-03 14:58:41 -05:00
Allan Erskine df01851f0e Adding note for #1881. 2015-03-02 10:16:35 -05:00
Josh Suereth 923f4261d0 Fix ANSI escape sequences.
Now we handle the CSI (ESC + [).

Fixes #1143
2015-02-28 08:30:59 -05:00
Eugene Yokota 30ca290a13 Add sbt.root.ivyplugin escape hatch 2015-02-25 00:22:26 -05:00
Eugene Yokota 162ed3f320 Fixes #1869, Ref #1871. Don't enable IvyPlugin for multi project generated root 2015-02-24 23:02:26 -05:00
Dale Wijnand f0732a8bd6 Add a note for 1869/1871. 2015-02-24 23:02:25 -05:00
Eugene Yokota 497374f459 Fixes #1711, #1730. Cached resolution: fixes internal project
Re-fixes cached resolution's internal dependency issue by recursively
calling customResolve instead of including the transitive dependencies
from internal dependencies into your own graph.
Transformation of configuration still happens, but at the level of
resolved graph (UpdateReport), which is much less granular, and
hopefully less error-prone.
2015-02-24 15:00:19 -05:00
Eugene Yokota f42419bdd4 Adds addMavenResolverPlugin. #1808/#1793 2015-02-02 14:57:25 -05:00
Eugene Yokota 71978ffffd Add a note for #1655/#1754 2015-02-02 13:46:08 -05:00
Eugene Yokota 3e48db9d1b Add a note for #1799 2015-02-02 13:41:54 -05:00
Eugene Yokota aecbcbad0c Add a note for #1787 2015-02-02 13:16:06 -05:00
Eugene Yokota 292b2a4ef7 Adds a note for #1340 2015-02-02 11:18:36 -05:00
Eugene Yokota a9c41a19cd Merge notes 2015-02-02 11:07:55 -05:00
Travis Brown 5720894c5a Fix typos in notes 2015-01-24 13:45:15 -05:00
Eugene Yokota b0a10815a6 Implementes `Def.sequential`. Fixes #1001
Adds Def.sequential based on Mark's implementation provided in #1001.
2015-01-20 01:22:03 -05:00
Dale Wijnand 8c4a0ea67c Fix typos in aether-resolvers.markdown 2015-01-15 11:18:10 +00:00
Josh Suereth 6587729fa9 Fix from review. 2015-01-14 16:27:12 -05:00
Josh Suereth 1fcd2f9769 Add missing notes for enhance bytecode feature. 2015-01-14 16:20:38 -05:00
Eugene Yokota 7580fe5afc Updated notes 2015-01-09 14:36:51 -05:00
Josh Suereth e3931dbfec Create a new Ivy DependencyResolver which uses Aether.
* Here we wire Aether into the Ivy dependency chain
* Add hooks into Aether to use Ivy's http library (so credentials are configured the same)
* Create the actual Resolver which extracts metadata information from Aether
* Deprecate old Ivy-Maven integrations
* Create hooks in existing Resolver facilities to expose a flag to enable the new behavior.
* Create notes documenting the feature.
* Create a new resolver type `MavenCache` which denotes how to read/write local maven cache metadata
  correctly.  We use this type for publishM2 and mavenLocal.
* Update failing -SNAPSHOT related tests to use new Aether resolver
* Create specification for expected behavior from the new resolvers.

Known to fix #1322, #321, #647, #1616
2015-01-08 08:53:25 -05:00
Josh Suereth 7311242bc0 Merge pull request #1634 from sbt/fix/1634
A library is missing from dependencyClasspath if it's added to libraryDependencies twice in ascending order
2014-12-15 16:05:57 -05:00
Josh Suereth 62658b5fd8 Merge pull request #1615 from sbt/fix/1615
0.13.6 eviction notices too noisy
2014-12-15 15:13:02 -05:00
Eugene Yokota 9d09af9568 Fixes #1634. Adds inconsistent duplicate warning
#1634 is about a library getting wiped out of deps graph when it’s
included twice in ascending order of version.
I’d say that’s a logically inconsistent state, and we should just issue
warning instead of trying to fix it.
2014-12-14 07:52:05 -05:00
Eugene Yokota 5199909be7 Fixes #1766. Removes "No main class detected" warning. 2014-12-13 00:05:55 -05:00
Eugene Yokota 46f56851d4 'evicted' task to display all evictions 2014-12-12 23:30:05 -05:00
Eugene Yokota 40e5f7538a Fixes #1615. Move the invocation of eviction warning.
This moves the invocation of eviction warning so it’s called only when
actual ivy update is being performed.
2014-12-12 17:46:19 -05:00
Eugene Yokota 79170a4df3 Document the XML situation 2014-12-12 12:45:14 -05:00
Eugene Yokota 263cf7194e Notes 2014-12-12 12:10:26 -05:00
Eugene Yokota 07afc67c7a Adds excludeDependencies. Fixes #1748
Adds project-level dependency exclusions:

  excludeDependencies += "org.apache.logging.log4j"
  excludeDependencies += "com.example" %% "foo"

In the first example, all artifacts from the organization
`"org.apache.logging.log4j"` are excluded from the managed dependency.
In the second example, artifacts with the organization `"com.example"`
and the name `"foo"` cross versioned to the current `scalaVersion` are
excluded.
2014-12-04 17:35:30 -05:00
Eugene Yokota 607b686cb2 Fixes #1752. Fixes cached resolution too verbose.
- Fixes cached resolution being too verbose
- Adds new UpdateLogging named "Default"
- When global logLevel or logLevel in update is Debug, Default will
bump up to Full UpdateLogging.
2014-12-04 12:34:30 -05:00
j-keck 928de373cd update notes 2014-11-25 09:57:25 +01:00
Eugene Yokota 8c2149dfb6 Fixes #1743. Fixes IndexOutOfBoundsException on Java warning with no position
Enbugged in #1702.
The d.getPosition, d.getStartPosition uses -1 as NOPOS value, but they
weren’t being checked.
Added checkNoPos.
2014-11-20 20:54:06 -05:00
Eugene Yokota 416ffa76d1 merge 0.13.7 manually 2014-11-19 14:34:08 -05:00
Eugene Yokota b6a2011734 notes 2014-11-19 01:57:28 -05:00
Eugene Yokota 80b9cd0cc0 notes 2014-11-19 01:55:56 -05:00
Eugene Yokota 37bf97dfce notes 2014-11-19 01:55:07 -05:00
Eugene Yokota 46f7e2d258 notes 2014-11-19 01:53:59 -05:00
Eugene Yokota 98e241f5a7 notes 2014-11-19 01:25:52 -05:00
Josh Suereth 65ff778882 Notes about the javac fix. 2014-10-31 16:04:43 -04:00
eugene yokota 473fc8476d Merge pull request #1703 from sbt/wip/merge-0.13.7
Wip/merge 0.13.7
2014-10-29 21:36:36 -04:00
Tomasz Bartczak 96f57f9fcd Fix for sbt#1180 - discovered classes are now sorted 2014-10-27 21:31:03 +01:00
Josh Suereth bfb4351fd7 Fix markdown for code example. 2014-10-24 18:55:00 -04:00
Josh Suereth 62d170f717 Add warning about incompatible parser. 2014-10-24 18:52:12 -04:00
Tomasz Bartczak 7a1a21d8c8 Fix for sbt#1648 - warn when no or multiple main classes 2014-10-22 22:42:01 +02:00
Josh Suereth 5e0bf71c51 Fix notes with appropriate link. 2014-10-20 12:27:51 -04:00
Josh Suereth c367c83d21 Revert chain resolver by default, for older behavior.
The issue comes into play where we cannot accurately get a publication date from Maven artifacts, leading to the current
mechanism having undefined behavior and causing other bugs to pop up in resolution.
2014-10-20 12:26:40 -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
Andrzej Jozwik 3fb8d67dd1 Replace @WarszawScala by @WarsawScala 2014-10-07 08:38:07 +02:00
Eugene Yokota aa3c462c70 link to a blog post with better picture 2014-10-06 23:22:49 -04:00
Eugene Yokota 346f872d43 including @rkrzewski to release note 2014-10-06 18:10:38 -04:00