Commit Graph

51 Commits

Author SHA1 Message Date
Alexandre Archambault d2c827a1a0 Remove deprecated stuff
Not to have to make it Java 6-compatible
2016-11-27 13:44:14 +01:00
Alexandre Archambault 30a8f119bd
Fix output silencing
Plugin should now really not print anything if nothing is downloaded
2016-11-16 16:23:58 +01:00
Alexandre Archambault f1e1b6aac9
Limit messages more in SBT plugin
Only print "Updating ...", "Fetching artifacts of ..." messages if something is actually downloaded
2016-11-07 12:27:56 +01:00
Alexandre Archambault bf097fa018
Rework profile activation
- don't activate profiles activated by default if some user activated profiles are provided, and
- accept OS / JDK conditions in activation
2016-11-07 12:27:53 +01:00
Alexandre Archambault 92c22a03bd
Don't print colors in coursierDependencyTree if sbt.log.noformat is true
Fixes https://github.com/alexarchambault/coursier/issues/362
2016-10-30 23:10:12 +01:00
Alexandre Archambault 8ef5a4b46d
Use sub-project names rather than their coordinates 2016-08-22 00:19:52 +02:00
Alexandre Archambault bbd367d14e
Have coursierDependencyTree not trigger fetching dependency JARs 2016-08-22 00:18:40 +02:00
Alexandre Archambault 1fcd34af8e
Get resolvers from inter-project dependencies too
The idea was suggested to me a few days at Scala Up North, by
@MasseGuillaume or @djspiewak, IIRC

Should fix a few test cases more from
https://gist.github.com/paulp/62eaca1850904137959ad9121cce6b15
2016-08-17 23:09:35 +02:00
Alexandre Archambault 8024ec7e64
Take into account user-supplied artifact URLs from project dependencies
Should fix the non/spire test case of
https://gist.github.com/paulp/62eaca1850904137959ad9121cce6b15
2016-08-17 23:09:33 +02:00
Alexandre Archambault ffde1c7145
Try to fix Windows build 2016-08-15 18:59:34 +02:00
Alexandre Archambault 80bd9c0dea
Don't let two different scala JARs land in the classpath...
...because of SBT
2016-08-15 18:59:29 +02:00
Alexandre Archambault 908a596b6d
Take into account sbt.global.base and sbt.ivy.home properties 2016-08-15 16:14:27 +02:00
Alexandre Archambault 8a0b083125
Fix cache key 2016-08-03 19:37:25 -04:00
Alexandre Archambault 5db01b37d6
Shutdown thread pools and manually created threads 2016-08-03 19:37:22 -04:00
Alexandre Archambault 47e0d38a3b
Add support for Maven profiles from the SBT plugin 2016-07-25 00:18:59 +02:00
Alexandre Archambault 22c7340f6f
Better inter-project dependencies handling 2016-07-24 14:32:33 +02:00
Alexandre Archambault 1c34362b6f
Better handling of Ivy patterns 2016-07-23 13:56:28 +02:00
Alexandre Archambault 75c86690d5
Set default artifact type to JAR from sbt plugin
Even if the packaging attribute of the dependency says the packaging is different (e.g. pom), this makes the plugin try to get a JAR anyway.

Fixes https://github.com/alexarchambault/coursier/issues/278
2016-06-27 23:53:29 +02:00
Alexandre Archambault e1d6f352f5 Merge pull request #270 from alexarchambault/topic/plugin-errors
Better plugin errors
2016-05-31 19:44:42 +02:00
Alexandre Archambault b76fbf363a
Add support for TTL 2016-05-31 15:18:29 +02:00
Alexandre Archambault 6e27a7fc6e
Slightly better error messages from plugin 2016-05-31 13:43:30 +02:00
Alexandre Archambault e688828f7a
Keep resolution error infos in ad hoc ADT 2016-05-31 13:43:27 +02:00
Alexandre Archambault 201ef286db
Stacktrace-less exceptions in SBT plugin 2016-05-31 13:43:23 +02:00
Alexandre Archambault d6155160e7
Take into account scalaOrganization setting 2016-05-30 13:15:02 +02:00
Alexandre Archambault 3045ebbfd0
Get credentials from SBT key `credentials` if available 2016-05-22 21:59:02 +02:00
Alexandre Archambault 0ccabd0820
Add support for HTTP authentication in SBT plugin 2016-05-09 19:25:28 +02:00
Alexandre Archambault 16225d98e6
Add tasks / settings allowing using other SBT sources as a repository 2016-05-09 19:25:23 +02:00
Alexandre Archambault 3834a9519c
Allow to print dependency trees 2016-05-06 13:53:49 +02:00
Alexandre Archambault 9072dacb0e Fix message 2016-04-27 01:12:33 +02:00
Jameel Al-Aziz 4d3f9e2041
Add cross version support with excludeDependencies 2016-04-22 03:05:03 -07:00
Alexandre Archambault e5be2c4c2c
Temporary hack
to minimize the chance of two different Artifact to have the same URL -
these are handled well by the cache if the corresponding URL has not
been downloaded yet, and result in one download locking the file for the
others
2016-04-18 00:29:45 +02:00
Alexandre Archambault 5dac114ba4
Small fix
Should make updateSbtClassifiers not fail if some javadoc or source JARs
cannot be found.
2016-04-16 15:16:52 +02:00
Alexandre Archambault f73dac68fd Try not flooding the terminal with ignored errors...
...in updateClassifiers.

Also fail if an artifact cannot be fetched in update. A bit risky - might unveil locked errors, that ought to be circumvented.
2016-04-05 17:03:03 +02:00
Alexandre Archambault d899303d2e Use SBT logging to print things 2016-04-05 16:58:21 +02:00
Alexandre Archambault 573a54cd8b Add support for excludeDependencies in SBT plugin 2016-04-01 01:11:48 +02:00
Alexandre Archambault 3367f49058 Add support for fallback artifact in SBT plugin 2016-04-01 01:11:48 +02:00
Alexandre Archambault 2fbe57da7a Add support for dependencyOverrides in SBT plugin 2016-03-14 16:20:47 +01:00
Alexandre Archambault 3cc88c5606 Adjust verbosity and cache policies settings in SBT plugin
- Set default verbosity level to 0
- Use the same cache policies as the CLI app everywhere (local-only, then fetch-missing)
- Allow to manually override these via the environment (COURSIER_VERBOSITY and COURSIER_MODE), or Java properties (coursier.verbosity and coursier.mode)
2016-03-14 16:20:21 +01:00
Alexandre Archambault 9cc95c0433 Add project metadata and repositories in resolution cache in SBT plugin
Fixes some publish or publishSigned commands failing, for some
modules having the same dependencies as others (thus previously the same
cache key, so no resolution was done and no Ivy file was generated,
which made the publish or publishSigned command complains).
2016-03-06 19:39:15 +01:00
Alexandre Archambault a7a34320df Cache now only designated by a simple directory 2016-03-06 14:45:57 +01:00
Alexandre Archambault 10400ec8c5 Force versions of the usual org.scala-lang modules 2016-02-24 20:22:29 +01:00
Alexandre Archambault 1f1067b483 Add support for sbt.override.build.repos flag
Fixes https://github.com/alexarchambault/coursier/issues/134
2016-02-23 20:15:24 +01:00
Alexandre Archambault 117e469ed9 Allow to disable progress bar display with the COURSIER_NO_TERM
environment variable by default

COURSIER_NO_TERM just has to be non-empty.
2016-02-22 23:01:22 +01:00
Alexandre Archambault 6830bc14cf Handle extra SBT artifacts 2016-02-20 15:56:33 +01:00
Alexandre Archambault 061dbe2f91 Slightly different indentation in output 2016-01-26 18:14:20 +01:00
Alexandre Archambault f655b432e0 Minor fix 2016-01-13 13:32:46 +01:00
Alexandre Archambault 9a61d7bbbf Better output of plugin 2016-01-10 21:32:28 +01:00
Alexandre Archambault 29e3cf8f81 Rename apply method of Fetch to from 2016-01-03 16:39:30 +01:00
Alexandre Archambault ca74648082 Fix minor glitch 2016-01-02 15:51:35 +01:00
Alexandre Archambault c37018b622 Fix for ~/.ivy2/local from plugin on Windows 2016-01-02 14:06:16 +01:00