Commit Graph

150 Commits

Author SHA1 Message Date
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 876129a605 Cleaning 2017-04-21 14:44:39 +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 3afc3433ba Use https repo 2017-04-03 14:43:08 +02:00
Alexandre Archambault 8134809c99 Use the newly-added Resolution.metadataErrors instead of errors 2017-03-27 16:23:29 +02:00
Alexandre Archambault 44e3eee0d3 Fix deprecation warning 2017-03-27 16:18: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
Alexandre Archambault 9e2d1b3686 Update flaky test 2017-03-21 11:56:44 +01:00
Jentsch 82b1d4287b Bump jquery version 2017-03-20 00:04:08 +01:00
Alexandre Archambault 5b47180285 Update flaky test 2017-03-10 01:00:17 +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 112638582f Shade fastparse 2017-02-28 15:09:18 +01:00
Alexandre Archambault 766ccbf5a9 Better handling of optional dependencies 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 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 ed03750c23 Switch to scalaz 7.2.8 2017-01-31 16:22:17 +01:00
Alexandre Archambault 704811efe9 Bump dependencies 2017-01-31 16:22:16 +01:00
Alexandre Archambault fe529fb9f4 Switch to Java 6 2016-11-27 17:37:39 +01:00
Alexandre Archambault e2a8836d25
Update test 2016-11-15 00:27:28 +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 9bc85b86e7
Bump dependencies for 2.12.0 2016-11-02 20:47:27 +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
Alexandre Archambault 25788388ff
Fix message in test 2016-10-22 22:25:54 +02:00
Alexandre Archambault 4b14215c33
Prepare build.sbt for 2.12, keep updating dependencies 2016-10-22 22:25:01 +02:00
Erem Boto b1f9cb96d4 Add support for property absence directives in profile activation 2016-10-15 18:34:52 -07:00
Erem Boto b8207607c9 Demonstrate failure to process property absence directives in profile activation 2016-10-15 18:12:41 -07:00
Erem Boto ef085cbc8e Bump jquery dependencies in webjars text resource to fix broken tests 2016-09-30 15:14:36 -07:00
Erem Boto 8369bacbc1 Reproduce the bug from https://repo1.maven.org/maven2/com/amazonaws/amazon-kinesis-producer/0.12.0/amazon-kinesis-producer-0.12.0.pom 2016-09-30 10:58:08 -07:00
Alexandre Archambault 10b13f73c7
Fix plugin handling
Mainly fixes things from SBT
2016-08-24 01:43:43 +02:00
Alexandre Archambault 6f93f85c5d
Switch to scalaz 7.2 2016-08-17 23:09:30 +02:00
Alexandre Archambault 72d0ac9728
Move tests with external requirements to it tests 2016-08-15 18:59:27 +02:00
Alexandre Archambault 6aebdac008 Ignore UTF-8 BOM in metadata files
Fixes https://github.com/alexarchambault/coursier/issues/316
2016-08-11 16:23:49 -04:00
Alexandre Archambault f61a258574
Accept single version interval syntax
Fixes https://github.com/alexarchambault/coursier/issues/310
2016-08-04 17:42:16 -04:00
Alexandre Archambault 5db01b37d6
Shutdown thread pools and manually created threads 2016-08-03 19:37:22 -04:00
Alexandre Archambault 5ac4efc661
Set default extension and classifier of artifact type test-jar
Fixes https://github.com/alexarchambault/coursier/issues/298
2016-07-24 14:19:45 +02:00
Alexandre Archambault 2283a34829
Set default artifact type to jar from the CLI tools
Fixes https://github.com/alexarchambault/coursier/issues/302
2016-07-23 18:39:17 +02:00
Alexandre Archambault eb4e73fa54
Better handling of version intervals / hints reconciliation
Fixes https://github.com/alexarchambault/coursier/issues/303
2016-07-23 18:36:36 +02:00
Alexandre Archambault 127e73abe9 Merge pull request #294 from alexarchambault/topic/better-ivy-pattern-parser
Better handling of Ivy patterns
2016-07-23 17:38:07 +02:00
Alexandre Archambault 800d0a1692
Update version 2016-07-23 17:04:43 +02:00
Alexandre Archambault 1c34362b6f
Better handling of Ivy patterns 2016-07-23 13:56:28 +02:00
Alexandre Archambault d0e11c9153
Fix tests after recent changes / fixes in dependency management / profiles handling 2016-07-03 16:34:18 +02:00
Alexandre Archambault f4dc1044e3
Add non regression test 2016-07-03 16:32:57 +02:00
Alexandre Archambault ea59ff6974
Update dependencies 2016-06-19 18:11:20 +02:00
Alexandre Archambault 1553d0b9d9
Add support for Ivy version ranges 2016-05-30 00:40:41 +02:00
Alexandre Archambault 2ddfe5f3b2 Keep version actually used to fetch metadata, to get artifacts
In case the one given by the metadata is wrong
2016-05-28 17:15:05 +02:00
Alexandre Archambault b7ba8d98d5
Don't restrict Maven property name characters too much
Fixes https://github.com/alexarchambault/coursier/issues/246
2016-05-10 14:20:16 +02:00
Alexandre Archambault c3ed92362a
listFiles can return null 2016-05-09 19:25:34 +02:00
Alexandre Archambault f68ed5d42b
Add support for HTTP authentication 2016-05-09 19:25:15 +02:00
Alexandre Archambault 8de5425e4d
Ensure returned resolution artifacts are unique
Should hopefully fix issues sometimes seen on CIs using sbt-coursier
2016-04-09 17:31:57 +02:00
Alexandre Archambault da78c523fb
Remove now unnecessary checks 2016-04-09 01:34:08 +02:00
Alexandre Archambault cc0ece263d Add non regression test 2016-04-01 02:27:59 +02:00
Alexandre Archambault f167b36c1c Give the .jar extension to maven-plugin packages 2016-04-01 01:57:31 +02:00
Alexandre Archambault cffbe747ed Minor refactoring 2016-04-01 01:56:20 +02:00
Alexandre Archambault 92fa4f38db Cleaning 2016-04-01 01:40:08 +02:00
Alexandre Archambault d71df26087 Basic property substitution in version in POMs 2016-04-01 01:39:19 +02:00
Alexandre Archambault b36de08ccb Fix IvyLocalTests and MiMa checks after organization change 2016-03-20 14:25:28 +01:00
Alexandre Archambault 29f8d49c83 Switch to scala 2.11.8, SBT scala-js 0.6.7 2016-03-14 16:20:20 +01:00
Alexandre Archambault b3eca058e4 Merge pull request #191 from alexarchambault/topic/checksum-format
Add back support for some checksum format
2016-03-06 19:27:39 +01:00
Alexandre Archambault dee115c1b6 Add back support for some checksum format 2016-03-06 14:56:12 +01:00
Alexandre Archambault a2364ca0c5 Add support for custom URL protocols 2016-03-06 14:45:58 +01:00
Alexandre Archambault a7a34320df Cache now only designated by a simple directory 2016-03-06 14:45:57 +01:00
Alexandre Archambault ff20ab3623 Rework checksum calculation a bit
To handle those starting with zeros in particular
2016-03-04 00:51:28 +01:00
Alexandre Archambault 7cb3a6ac32 Merge pull request #171 from darkjh/bugfix/#131_junk_sha1
Bugfix/#131 junk sha1
2016-03-03 00:12:06 +01:00
Han JU dab0c94622 More intelligent checksum parsing and unit tests 2016-03-02 15:03:05 +01:00
Alexandre Archambault 5bbe01bfdd Better handling of Maven scopes
Actually a regression introduced when Ivy support was added

Fixes https://github.com/alexarchambault/coursier/issues/178,
https://github.com/alexarchambault/coursier/issues/177
2016-02-28 17:31:20 +01:00
Alexandre Archambault b9895ce801 Add support for packaging attribute in POMs 2016-02-28 17:00:12 +01:00
Alexandre Archambault cc36407cc2 Use the output of coursier resolve in test fixtures
Doesn't test artifact type anymore, but these are not the main objective here
2016-02-28 16:36:58 +01:00
Alexandre Archambault 06d0e4fac3 A bit more reliable Scala JS file reading in tests
Was sometimes getting undefined error locally
2016-02-24 20:22:27 +01:00
Alexandre Archambault 4676d65031 Really test version intervals...
...and fix the tests
2016-02-22 22:18:52 +01:00
Alexandre Archambault 829c397ca8 Keep calculated dependencies accross resolutions 2016-02-07 14:13:20 +01:00
Alexandre Archambault 796a428ca6 Better handling of info attributes
- Drop them from dependencies originating from Ivy metadata if asked to do so (dropInfoAttributes field of IvyRepository)
- Enable dropping them by default on ~/.ivy2/{cache,local}, and Ivy repositories in SBT plugin
- Add --drop-info-attr CLI option to enable dropping them from the command-line tools
- Test these with org.scala-js:sbt-scalajs;sbtVersion=0.13;scalaVersion=2.10:0.6.6
2016-02-04 15:03:42 +01:00
Alexandre Archambault d91a017630 Set version to 1.0.0-M5 2016-01-27 13:31:17 +01:00
Alexandre Archambault 7330494873 Add support for Ivy latest revision syntax
Like 2.2.+ for [2.2.0,2.3.0)

Fixes https://github.com/alexarchambault/coursier/issues/104
2016-01-26 18:14:20 +01:00
Alexandre Archambault a254b9c21c Add support for parent project POM properties
Fixes https://github.com/alexarchambault/coursier/issues/120
2016-01-26 18:14:20 +01:00
Alexandre Archambault e74984da5d Minor fix in tests 2016-01-26 18:14:20 +01:00
Alexandre Archambault 3e9a37edc3 Do not fetch artifacts with a classifier from Ivy repositories if not
asked to do so
2016-01-26 18:14:20 +01:00
Alexandre Archambault 3ee3283a27 Have Repository extend Product with Serializable 2016-01-03 17:11:25 +01:00
Alexandre Archambault 4af9863757 Update test 2015-12-30 21:53:08 +01:00
Alexandre Archambault 76e989d21c Better properties substitution (#2) 2015-12-30 01:34:32 +01:00
Alexandre Archambault d33ab9da26 Output better `sbt.ModuleReport`s 2015-12-30 01:34:32 +01:00
Alexandre Archambault 9f26ed05b2 Rename Files to Cache 2015-12-30 01:34:32 +01:00
Alexandre Archambault 0e5118befe Better handling of classifiers 2015-12-30 01:34:32 +01:00
Alexandre Archambault f84e9ad938 Changes in files 2015-12-30 01:34:32 +01:00
Alexandre Archambault 3b4b773c64 Add Ivy repository support 2015-12-30 01:34:32 +01:00
Alexandre Archambault e4dfc862b4 Replace scopes with Ivy-like configuration 2015-12-30 01:34:32 +01:00
Alexandre Archambault 98acae19bc Allow to force some module versions during resolution
What SBT calls "dependency overrides"
2015-11-29 21:26:28 +01:00
Alexandre Archambault e20b93326d Move things around
- core doesn't depend anymore on scalaz-concurrent, only on scalaz-core
- metadata and JARs downloading now unified (merged with the latter)
- ...
2015-11-29 20:35:21 +01:00