Commit Graph

11 Commits

Author SHA1 Message Date
Alexandre Archambault 817d6b6d44 Remove now unnecessary helper functions
They were useful on Java 6, and aren't anymore now that we require Java >= 8
2018-03-19 10:48:50 +01:00
Alexandre Archambault dc2e4996f4 Require Java 8 from now on 2018-03-12 21:50:35 +01:00
Alexandre Archambault fb5a2fde12 Merge cache and fetch-js projects 2018-03-12 20:50:22 +01:00
Ruben Berenguel cf365ea27a Resets the connection (and sets partial download to false) if the range is not satisfiable by the server (#795) 2018-03-12 11:19:57 +01:00
Yi Cheng a7605ff900
Retry on ChecksumError (#797)
Fix for #780
2018-03-10 12:57:47 -08:00
Nick Howard d0b46864c8 json-report: one file per dependency instead of multiple; use m2 coords (#782)
When classifiers are used as part of dependency specifications, it's important to be able to select just the classified artifact. Unfortunately, in the current json, dependencies don't specify classifiers, so it isn't possible to just get one of the artifacts for a dependency when a classifier is required.

This patch introduces maven style artifact prefixes in order to include classifier and packaging information in the coordinates. By doing that, we can use them as keys in dependency lists more easily and it allows consumers of the json to treat those dependency keys as mostly opaque ids rather than having to parse them.

Addresses #743
2018-03-09 14:47:27 -08:00
Alexandre Archambault f4fe44fe2c Clean-up helper method to fully read InputStream 2018-03-03 15:09:02 +01:00
Yi Cheng 76768c3479
Remove redundant test (#788)
Forgot to do so in #769 `CliIntegrationTest.scala` was split into `CliFetchIntegrationTest.scala` and `CliBootstrapIntegrationTest.scala`
2018-02-24 01:05:51 -08:00
Dorothy Ordogh 3e4a65d5ee Add ability to fetch artifact with a given url (#774)
* changes

* changes to Attributes

* make changes

* add test and fix bug

* add more tests

* fix failing tests

* fix parentheses

* remove comments I added and add test that's guarenteed not to exist in a repo

* remove Attributes third parameter and refactor Parse's moduleVersionConfig to return a tuple of Dependency and a Map of String to String representing extra parameters for the dependency

* update some return types and methods in the Helper class

* return FallbackDependenciesRepository back to original state

* refactor helper

* remove url from attributes

* fix tests and add cache to extra in build.sbt

* remove FallbackDepsRepo from sbt-coursier

* add variable for url and call encode in tests

* update tests and helper to have proper behavior

* remove setting deps to intransitive when url is present and add two tests

* add more tests, implement @wisechengyi's comments

* fix nits

* update ParseTests because some failed

* fix tests

* incorporate feedback from @alexarchambault and @wisechengyi

* update ParseTests to check for returned error vs thrown error

* remove one test that is covered in ParseTests

* fix nits

* add back deleted brackets

* return errors in Left without using return statement

* revert change because it's broken

* fix some positional things

* add return statement or else error won't be processed

* fix nits. thanks @wisechengyi

* Remove return statements
2018-02-22 18:06:06 +01:00
Yi Cheng c8d191401c
Separate out bootstrap integration test (#769)
Separate bootstrap test because Pants does not pre-build the bootstrap.jar
2018-02-07 16:04:58 -08:00
Alexandre Archambault 506e14a90b Switch cli to scala 2.12 and latest case-app 2018-02-07 10:23:07 +01:00