Commit Graph

229 Commits

Author SHA1 Message Date
xuwei-k a729d5a2c4 fix github organization name. s/alexarchambault/coursier 2017-05-13 23:14:23 +09:00
Alexandre Archambault 690b0b3215 Be fine with signatures of signatures of checksums of signatures of checksums of POMs
or various combinations of those
2017-05-11 17:48:45 +02:00
Alexandre Archambault 394f9f2bb6 Handle html entities in XML files 2017-05-11 17:48:44 +02:00
Alexandre Archambault 2f0eb1dba8 wuw 2017-05-11 17:48:44 +02:00
Alexandre Archambault fc38828818 Cleaning 2017-05-11 17:48:43 +02:00
Alexandre Archambault 83e04a8e45 Get parent metadata prior to requiring import dependencies 2017-05-11 17:48:43 +02:00
Alexandre Archambault efc280be06 Address javadoc warning 2017-05-06 16:55:27 +02:00
Alexandre Archambault ef3d8c06a5 Ignore JARs of relocated dependencies 2017-05-05 18:04:20 +02:00
Jentsch d875057a36 Dropped deprecated mutable Stack and rewrote Tree generator 2017-05-02 22:34:39 +02:00
Alexandre Archambault e6c28f02d6 Merge pull request #462 from coursier/topic/profiling
Profiling...
2017-04-24 23:10:00 +02:00
Alexandre Archambault 3c46f452eb Merge pull request #507 from coursier/topic/foo
Various things
2017-04-22 14:27:42 +02:00
Valentin Kasas f0d314d7f2 Use parent's projects resolution result as project cache 2017-04-22 14:20:59 +02:00
Guillaume Martres 348cc15dba Fix #506: Support Maven snapshots without `snapshotVersions` 2017-04-22 02:25:20 +02:00
Alexandre Archambault ec0ed108e1 Add support for relocation 2017-04-21 16:47:48 +02:00
Alexandre Archambault ad80e1482c Accept "groupId", "artifactId", "version" properties 2017-04-21 15:56:59 +02:00
Alexandre Archambault dba6225ac1 Add support for build metadata in versions 2017-04-21 14:52:19 +02:00
Alexandre Archambault d3b692e165 Don't print exclusions by default 2017-04-21 14:37:20 +02:00
Alexandre Archambault 85dcc9d539 Cleaning 2017-04-21 13:49:41 +02:00
Alexandre Archambault 68b9eeeda8 Don't use missing directory listing fallback if it can be avoided
If the POM is in cache, but not the directory listing (nor a .error file for it), the LocalUpdate and LocalUpdateChanging policies make MavenRepository do as if the directory listing is missing - it is not even checked with the subsequent cache policies if any (because the POM was found with LocalUpdate / LocalUpdateChanging in the first place).

This PR fixes that - getting the POM will fail if the directory listing or an error file for it is missing from cache. That way, subsequent cache policies can fetch the directory listing.

As this only happens depending on what's in cache, it's a bit cumbersome to test as is. Relying fully on NIO2 in subsequent coursier versions should make it easier to add test cases for that (by using a virtual fs like jimfs to test what happens depending on what's in cache).

The test should basically do:

    $ coursier fetch org.apache.maven:apache-maven:3.3.9 # fill cache
    $ rm -f $CACHE_PATH/https/repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/.directory
    $ rm -f $CACHE_PATH/https/repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/..directory.checked
    $ coursier fetch org.apache.maven:apache-maven:3.3.9

 The second fetch should work fine, fetching the directory listing, seeing that it lists no JAR, and then not attempting to download one. Before this commit, the second attempt would assume that the directory listing is not available, do without it, so assume that a JAR exists, and fail to download it.
2017-04-18 18:31:37 +02:00
Alexandre Archambault 1a34ed6340 Merge commit '9bc6952' into topic/missing-commits 2017-04-18 14:11:20 +02:00
Alexandre Archambault 9bc69527dd Update MIMA settings after 1.0.0-RC1 release (#492)
* Update MIMA settings after 1.0.0-RC1 release

* Adjust things for MIMA after 1.0.0-RC1 release
2017-04-11 15:19:27 +02:00
Alexandre Archambault 7e32f90a9e Rework artifact listing for Maven repositories
So that signature files, checksums, etc. don't appear as standalone artifacts
2017-04-11 14:41:16 +02:00
Alexandre Archambault ef21746c81 Be fine with extensions / types with dots
Like tar.gz
2017-04-11 14:41:16 +02:00
Alexandre Archambault 9c6c274571 Tweak properties substitution to be fine with deeplearning4j 2017-04-10 13:51:22 +02:00
Alexandre Archambault d629f8f7b9 Merge pull request #487 from coursier/topic/tweak-optional-config
Tweak optional pseudo-configuration
2017-04-06 15:45:29 +02:00
Alexandre Archambault 2420fa8a69 Tweak optional pseudo-configuration
Have it ~extends "default" rather than "compile", so that depending on both "default" and "optional" can be simplified to just "optional" ("default" being pulled by it now, thanks to this change). That allows to address the scala-compiler jar appearing twice on the classpath sometimes.
2017-04-06 00:14:33 +02:00
Ólafur Páll Geirsson 45b920c352 Support --repository bintray-ivy:org/repo/ in cli.
This commit adds support for a `bintray-ivy:` repository prefix to the `--repository`
flag in the cli. This option is equivalent to the `Resolver.bintrayIvyRepo` helper in sbt.
With this new helper, it's possible to write `-r bintray-ivy:scalameta/maven/` instead of

```
-r ivy:https://dl.bintray.com/scalameta/maven/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
```
2017-04-05 18:00:59 +02:00
Alexandre Archambault b54438c1ba Add fallback if directory listings are not available 2017-04-04 14:45:06 +02:00
Alexandre Archambault c176adca3c Enable sbt plugin hack in Maven repo paths by default 2017-04-03 00:19:51 +02:00
Alexandre Archambault 79e60f17ca Fix one-arg deprecated annotation warnings 2017-03-27 16:16:17 +02:00
Alexandre Archambault f0d16c88d8 Merge pull request #421 from kzys/fix-408
Trim whitespaces around version specifiers
2017-03-27 10:55:04 +02:00
Kazuyoshi Kato 557cd8036d Report all errors including POM-related ones
Resolution#errors don't have POM-related errors (e.g. #157).
The new `metadataErrors` method would replace the original `errors`
eventually.
2017-03-25 23:07:49 -07:00
Alexandre Archambault 729c62278a Fix missing artifacts for snapshot versioning
Regression since recent overhaul of artifact type handling
2017-03-23 14:07:48 +01:00
Kazuyoshi Kato 6eeeb8cb66 Trim the whitespaces in pom.xml's properties
Maven trims the whitespaces around pom.xml's properties by default.
Fixes #408
2017-02-28 22:54:06 -08:00
Alexandre Archambault ac00abd152 Tweak artifact listing
Can't remember when / why this one was necessary...
2017-02-27 15:54:57 +01:00
Alexandre Archambault 0e9109c3f7 Don't assume directory listing to be changing...
for non changing dependencies
2017-02-27 15:54:56 +01:00
Alexandre Archambault 766ccbf5a9 Better handling of optional dependencies 2017-02-13 19:19:39 +01:00
Alexandre Archambault cce332eb55 Refactor web page link listing logic, implement it on the scalajs side 2017-02-13 19:19:39 +01:00
Alexandre Archambault 6b89af3924 Better handling of artifacts from Maven repos
Doesn't seem to break things
2017-02-13 19:19:29 +01:00
Alexandre Archambault 5559c5ce01 Minor refacto 2017-02-05 15:36:34 +01:00
Alexandre Archambault 035391f647 Add missing language.implicitConversions imports 2017-02-04 16:36:52 +01:00
Alexandre Archambault d277153777 Annotate all case classes with final 2017-02-04 16:36:52 +01:00
Alexandre Archambault 7194fe7b48 Add missing language.higherKinds imports 2017-02-03 13:45:44 +01:00
Alexandre Archambault 5e0189fa7e
Allow to swap Scala mainline dependencies by Typelevel ones 2016-11-15 00:27:23 +01:00
Alexandre Archambault c16eb18cbf Merge pull request #381 from alexarchambault/topic/fixes
Fixes
2016-11-07 13:50:02 +01:00
Alexandre Archambault d5cc47ae5f
Add non regression test for org.nd4j:nd4j-native:0.5.0...
...and corresponding fixes / workarounds
2016-11-07 12:28:02 +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
Kazuyoshi Kato ffa33961f0 Fix #266 by stop recursively traversing a tree 2016-11-02 19:51:05 -07: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 92a8ea2ab5 Better handling of artifact types
Fixes https://github.com/alexarchambault/coursier/issues/318
2016-10-30 20:11:09 +01:00