Commit Graph

17940 Commits

Author SHA1 Message Date
jvican 1f4030ff17
Remove unused apply in `UnresolvedWarning` 2017-04-28 10:19:12 +02:00
jvican c84d297912
Turn `ResolveException` private[sbt]
Plus, remove deprecated method using `ResolveException`.
2017-04-28 10:19:12 +02:00
jvican 258cb7c5ac
Remove unused instance of `retrieve`
This commit removes the second instance of `retrieve` that was private
and unused, therefore reducing the API surface of `IvyActions`.
2017-04-28 10:19:12 +02:00
jvican eea500d64f
Remove coded uplication in `updateEither`
This commit reduces the code duplication in `updateEither` which was
duplicating a good deal of the resolution logic to deal with the
different resolution mechanisms: the simple one and the cached one.

It also unifies the signatures of the helpers that are invoked by
`updateEither`, removing the weirdness of the different return type
signatures and ad-hoc logic handling.
2017-04-28 10:19:11 +02:00
jvican b68498d013
Remove unused arguments in clean and use site
`cleanCachedResolutionCache` and `clean` were doing extra work because
`clean` does only need to clean the cache in the configuration (that is
a class parameter).
2017-04-28 10:19:06 +02:00
tksk ab3de739d7 detect $init_sbt_version 2017-04-28 02:28:16 +09:00
tksk fb30f81f89 fix: recursive copying needs "/E" option 2017-04-28 02:27:48 +09:00
tksk ef8011df0d fix: least java version check for syncing "preloaded" 2017-04-28 02:26:49 +09:00
Alexandre Archambault f93aca0f55 Tweak CI script 2017-04-27 16:10:57 +02:00
jvican 8fd40e56df
Ease `updateTask` and `cachedUpdate` maintenance
This commit does some changes to the implementation with the purpose of
making this code more readable. I find that this rewrite was necessary
as I was implementing the dependency lock file.
2017-04-27 15:14:42 +02:00
Eugene Yokota c35a487c9e debian build id 2017-04-26 20:08:26 -04:00
eugene yokota ab46a5a3f4 Merge pull request #158 from sbt/wip/ubuntu
Remove Java requirements for Debian/Ubuntu package
2017-04-26 19:35:24 -04:00
Eugene Yokota 58cf5f95ca Remove Java requirements for Debian/Ubuntu package
Ref sbt/sbt#2931
Ref sbt/sbt#3105

Requiring `"openjdk-8-jdk"` prevents sbt 0.13.15 update on Ubuntu 14.04 LTS "Trusty Tahr."
Since there seems to be no reasonable way to depend on JDK 6, 7, or 8 without breaking some distro or use case, I'm going to remove the requirement here.
2017-04-26 19:25:16 -04:00
jvican 8c993d2d53
Fix sbt/sbt#2982: Add a parallel Ivy engine
This is a port of https://github.com/sbt/sbt/pull/2992.

Original description of the feature:

```
Ivy downloads have traditionally been single-threaded.

Parallel downloads are a must for a modern build tool. This commit
builds upon the work done by Josh Suereth in the branch
sbt/ivy-parallel-download-artifact.

To avoid adding external dependencies, it uses the Scala parallel
collections. If maintainers consider that is worth it to use a more
modern and appropriate approach, like Task, I'm happy to reimplement
the features with it.
```

This commit does not preserve Josh's metadata in the commit since the
whole design of the repository has changed and I did not know how to
import a commit from sbt/sbt. However, it does apply several changes to
the original PR.

Co-authored-by: Josh Suereth <joshua.suereth@gmail.com>
2017-04-27 00:02:37 +02:00
jvican e1d98a1ec2
Fix sbt/sbt#1518: Handle cross-versioned exclusions
The following PR does two things:

* Removes the unnecessary `SbtExclusionRule` that was introduced to
  exclude artifacts at the project level (and not the dependency level).
  This change was done in an independent class to avoid breaking
  bincompat in 0.13.x series.
* Handle exclusion rules correctly, propagating the cross version to the
  exclusions of the dependencies.

To fix sbt/sbt#1518, this PR takes the avenue taken in
`SbtExclusionRule`, it accepts `GroupArtifactID` which should be the
preferred way to specify dependencies from now on. Unlike
`SbtExclusionRule`, it also supports `ModuleID` for those that want to
exclude a concrete dependency.

`InclExcl` did not have any tests. The following commit also adds a
testing suite for it, showing how the issue it's fixed and how you
should use `exclude` if you're calling directly `ExclusionRule` instead
of passing in `GroupArtifactID` and `ModuleID`.
2017-04-26 23:44:14 +02:00
eugene yokota c588869f2e Merge pull request #87 from scalacenter/reformat
Reformat with scalafmt
2017-04-26 17:43:09 -04:00
jvican d42ea869d0
Apply formatting 2017-04-26 22:55:38 +02:00
jvican 712c83f859
Configure scalafmt and disable scalariform 2017-04-26 22:53:17 +02:00
Alexandre Archambault b65fdf3c7b Switch to scala 2.11.11 2017-04-26 14:11:38 +02:00
Alexandre Archambault e6c28f02d6 Merge pull request #462 from coursier/topic/profiling
Profiling...
2017-04-24 23:10:00 +02:00
Alexandre Archambault 916488393a Merge pull request #512 from coursier/topic/sbt-release
Use sbt-release
2017-04-24 22:40:22 +02:00
Alexandre Archambault 6e79dcab9c Merge pull request #509 from coursier/topic/javadoc-sources-config
Publish sources / javadoc under the right conf
2017-04-24 21:46:38 +02:00
Alexandre Archambault debf9da7a4 Don't run tests during releases now that the CI statuses are checked 2017-04-24 21:09:12 +02:00
Alexandre Archambault d800467c3c Check Appveyor status 2017-04-24 21:09:11 +02:00
Alexandre Archambault d27cec6839 Check Travis status 2017-04-24 21:09:11 +02:00
Alexandre Archambault c59648bd80 Use sbt-release 2017-04-24 21:09:11 +02:00
Alexandre Archambault 142aa5ec20 Update Appveyor badge
required by GitHub org change
2017-04-24 20:46:23 +02:00
Alexandre Archambault ade87bc78f Update script 2017-04-24 20:46:22 +02:00
Alexandre Archambault ad8eb31b68 Avoid now deprecated method 2017-04-24 20:46:22 +02:00
Alexandre Archambault 7e2593a293 Rework plugins.sbt 2017-04-24 20:46:22 +02:00
Alexandre Archambault 9d300fe3b3 Publish sources / javadoc under the right conf
Before that commit, sources / javadoc were put under the "compile"
config when running "publishLocal". This commit puts them under the
"sources" and "docs" configs.
2017-04-22 15:22:43 +02:00
Alexandre Archambault 3c46f452eb Merge pull request #507 from coursier/topic/foo
Various things
2017-04-22 14:27:42 +02:00
Alexandre Archambault 6637ec772b Merge pull request #508 from smarter/fix-snapshot-no-versioning
Fix #506: Support Maven snapshots without `snapshotVersions`
2017-04-22 14:27:26 +02:00
Alexandre Archambault 34e591792a Mention JProfiler in README 2017-04-22 14:21:00 +02:00
Valentin Kasas f0d314d7f2 Use parent's projects resolution result as project cache 2017-04-22 14:20:59 +02:00
Alexandre Archambault 34ff7662db Naively cache created simple sbt structures 2017-04-22 14:20:57 +02:00
Guillaume Martres 348cc15dba Fix #506: Support Maven snapshots without `snapshotVersions` 2017-04-22 02:25:20 +02:00
eugene yokota edf7e566ba Merge pull request #3125 from eed3si9n/wip/format
[sbt 1.0] Reformat using Scalafmt
2017-04-21 12:05:27 -04:00
Alexandre Archambault ec0ed108e1 Add support for relocation 2017-04-21 16:47:48 +02:00
Alexandre Archambault 13da5e871f Don't leave POMs as artifacts in update reports
sbt-pack isn't too fine with those in particular
2017-04-21 16:26:49 +02:00
Alexandre Archambault ad80e1482c Accept "groupId", "artifactId", "version" properties 2017-04-21 15:56:59 +02:00
Alexandre Archambault 869d7c628e Retry downloads if an SSLException is caught 2017-04-21 15:32:45 +02:00
Alexandre Archambault f7020fd0ad Only warn on missing credential file 2017-04-21 15:11:39 +02:00
Alexandre Archambault dba6225ac1 Add support for build metadata in versions 2017-04-21 14:52:19 +02:00
Alexandre Archambault 876129a605 Cleaning 2017-04-21 14:44:39 +02:00
Alexandre Archambault d3b692e165 Don't print exclusions by default 2017-04-21 14:37:20 +02:00
Alexandre Archambault 00443c3a46 Don't use Java >= 7 Exception constructor 2017-04-21 14:37:20 +02:00
Alexandre Archambault 85dcc9d539 Cleaning 2017-04-21 13:49:41 +02:00
Eugene Yokota da046791e0 Apply Scalafmt formatting 2017-04-21 04:48:31 -04:00
Eugene Yokota 1ec7e8d975 format: off / format: on 2017-04-21 03:11:48 -04:00