Commit Graph

1792 Commits

Author SHA1 Message Date
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
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
Alexandre Archambault c144feca94 Merge pull request #504 from coursier/topic/tweak-dir-listing-cache
Tweak dir listing cache
2017-04-19 11:49:30 +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 f9de965638 Minor tweaking 2017-04-18 18:31:29 +02:00
Alexandre Archambault 5a738b7bb7 Merge pull request #503 from coursier/topic/missing-commits
Missing commits
2017-04-18 15:00:39 +02:00
Alexandre Archambault 143fdc9720 Fix link in release notes
Reported by @ritschwumm (via https://gitter.im/coursier/coursier?at=58f15a5dbdf4acc1125e6d5f)
2017-04-18 14:17:11 +02:00
Alexandre Archambault 1a34ed6340 Merge commit '9bc6952' into topic/missing-commits 2017-04-18 14:11:20 +02:00
Alexandre Archambault 0467d85d97 Merge commit 'dacf8a7' 2017-04-18 14:10:08 +02:00
Alexandre Archambault e9aec8c511 Merge pull request #497 from coursier/topic/fix-unidoc
Ensure unidoc generation works fine with sbt-coursier
2017-04-11 17:33:39 +02:00
Alexandre Archambault 046658838b Merge pull request #498 from coursier/topic/tweak-artifact-listing-0
Tweak artifact listing
2017-04-11 17:32:05 +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 261aebcfa2 Ensure unidoc generation works fine with sbt-coursier 2017-04-11 15:10:04 +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 dacf8a78a5 Merge pull request #490 from olafurpg/typesafe-ivy
Clarify value description for --repository.
2017-04-10 15:02:38 +02:00
Alexandre Archambault 4da99f29c3 Merge pull request #491 from coursier/topic/deeplearning4j
Tweak properties substitution...
2017-04-10 14:59:56 +02:00
Alexandre Archambault 9c6c274571 Tweak properties substitution to be fine with deeplearning4j 2017-04-10 13:51:22 +02:00
Ólafur Páll Geirsson 00bbb1a4b6 Clarify value description for --repository.
- s/typesafe-ivy:releases/typesafe:ivy-releases/
- prepend variables with `$` to highlight dynamic vs. static parts
2017-04-10 09:26:38 +02:00
Alexandre Archambault fd5a421145 Merge pull request #489 from coursier/topic/updates
Switch to sbt-coursier 1.0.0-RC1
2017-04-09 16:29:32 +02:00
Alexandre Archambault aa17bcd086 Merge pull request #488 from coursier/topic/update-readme
Update README
2017-04-09 16:29:03 +02:00
Alexandre Archambault 0496ec7b8e Update release notes 2017-04-08 18:43:25 +02:00
Alexandre Archambault c7eb333d06 Switch to sbt-coursier 1.0.0-RC1 2017-04-08 18:41:26 +02:00
Alexandre Archambault ca45149bb9 Tweak 1.0.0-RC1 release notes 2017-04-08 18:24:52 +02:00
Alexandre Archambault ccd1085194 Updates for 1.0.0-RC1 2017-04-08 18:19:10 +02:00
Michael Ledin 800eaecc5c Added Quill to the list of projects using coursier.
Former commit for that got lost for 1.0.0-M15 during a `sbt tut`
2017-04-08 18:11:12 +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 e344cdf4a9 Merge pull request #481 from olafurpg/bintray-ivy
Support --repository bintray-ivy:org/repo/ in cli.
2017-04-06 01:34:44 +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 6c1b8ea7a4 Merge pull request #486 from coursier/topic/fix-spark-submit-1.x
Fix spark-submit command in spark 1.x
2017-04-05 13:30:38 +02:00
Alexandre Archambault 4e3c4aff1d Fix spark-submit command in spark 1.x
Recent regression
2017-04-05 12:33:54 +02:00
Alexandre Archambault d9519a2e30 Merge pull request #484 from coursier/topic/spark-submit-artifact-types
Get both jar and bundle artifacts from spark-submit command
2017-04-04 17:14:00 +02:00
Alexandre Archambault 7e414c1d6b Merge pull request #480 from coursier/topic/no-directory-listing-fallback
Add fallback if directory listings are not available
2017-04-04 16:40:19 +02:00
Alexandre Archambault a62fb9a85f Get both jar and bundle artifacts from spark-submit command
For the JAR list passed to spark.yarn.jars. The bundle ones are missing since 1.0.0-M15-2 else.
2017-04-04 16:37:51 +02:00