Commit Graph

224 Commits

Author SHA1 Message Date
Alexandre Archambault bb4fcfceb6 Tweak console output 2017-05-11 17:48:43 +02:00
Alexandre Archambault 3b111fa1eb Fix compilation warnings 2017-05-03 00:44:45 +02:00
Alexandre Archambault d3b692e165 Don't print exclusions by default 2017-04-21 14:37:20 +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
Ó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 4e3c4aff1d Fix spark-submit command in spark 1.x
Recent regression
2017-04-05 12:33:54 +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
Alexandre Archambault 375eeca48b Merge pull request #385 from coursier/topic/extra
Stuff
2017-04-03 17:13:20 +02:00
Alexandre Archambault e7f74dda0d Tweak spark-submit command options 2017-04-03 15:19:09 +02:00
Alexandre Archambault 9194853749 More loose main class detection
Makes it find the main class of scalafmt
2017-04-03 10:09:33 +02:00
Alexandre Archambault 62d3ed307a Remove cli=true from scaladex query
Makes it not find lihaoyi/Ammonite in particular
2017-04-03 10:09:33 +02:00
Guillaume Massé c332d4f46e scaladex cli api change & use scalaVersion from options
* Scaladex was updated to allow developers to specify cli artifact. It
  will only return projects and artifacts with cli enable
2017-04-03 10:09:33 +02:00
Alexandre Archambault e8af9e7aba Parallelize scaladex lookups 2017-04-03 10:09:33 +02:00
Alexandre Archambault f29e74126d Cache scaladex lookups 2017-04-03 10:09:33 +02:00
Alexandre Archambault 1380d7a741 Quick & dirty scaladex lookup 2017-04-03 10:09:33 +02:00
Alexandre Archambault c176adca3c Enable sbt plugin hack in Maven repo paths by default 2017-04-03 00:19:51 +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 4dd9f7954b Tweak some type class derivations
Hopefully will address more-or-less random failures, on the CI in
particular
2017-02-27 16:43:30 +01:00
Alexandre Archambault 36ba4b6252 Remove unnecessary --default-artifact-type option, fix javadoc / sources 2017-02-27 15:54:57 +01:00
Alexandre Archambault d277153777 Annotate all case classes with final 2017-02-04 16:36:52 +01:00
Alexandre Archambault fe529fb9f4 Switch to Java 6 2016-11-27 17:37:39 +01:00
Alexandre Archambault 5f8784b800
Add support for Spark 2 in spark-submit command 2016-11-18 11:23:02 +01:00
Alexandre Archambault 4b4796948b
Set default values for most command-line options
These make it easier to re-use the cli module as a library - although
this is in no way something I'd recommend to do
2016-11-16 21:59:50 +01:00
Alexandre Archambault 71b3acead3
Fix attempt to download an artifact several times in parallel 2016-11-15 00:27:33 +01:00
Alexandre Archambault d3656fa6ae
Fix regression in class loader isolation 2016-11-15 00:27:26 +01:00
Alexandre Archambault 5e0189fa7e
Allow to swap Scala mainline dependencies by Typelevel ones 2016-11-15 00:27:23 +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 9d0526d1bf
Concatenate services files in generated spark-assemblies 2016-11-04 18:00:48 +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 73f0ad20da
Use system classloader as base classloader 2016-10-20 18:24:06 +02:00
Alexandre Archambault 06674f5981
Fixes / enhancements 2016-09-22 10:03:45 +02:00
Alexandre Archambault 7c921257ae
Fix 2016-09-21 11:03:37 +02:00
Alexandre Archambault 2807f64cb5
Allow to manually add extra JARs in the submitted job classpaths 2016-09-21 11:03:32 +02:00
Alexandre Archambault 974dee8cf4
Allow to manually add things in the classpath of launched apps 2016-09-21 11:03:29 +02:00
Alexandre Archambault a50cb1bd85
WIP - Generate spark assemblies on the fly 2016-09-21 11:03:26 +02:00
Alexandre Archambault e55c6384bd Keep reworking spark-submit command 2016-09-09 00:42:13 +02:00
Han JU eac19c1a66 move SparkSubmit to its own module with spark-core as dependency 2016-09-02 18:06:09 +02:00
Alexandre Archambault d71f1eaa8e
Fix 2016-08-31 11:35:06 +02:00
Alexandre Archambault b4dd43e03c
Add spark-submit command 2016-08-30 16:59:01 +02:00
Alexandre Archambault 6f93f85c5d
Switch to scalaz 7.2 2016-08-17 23:09:30 +02:00
Alexandre Archambault 1b0dd4e899
Set default artifact type to empty value
Add non regression test for
https://github.com/alexarchambault/coursier/issues/322

A dirty hack is lying in this commit.
2016-08-15 18:59:19 +02:00
Alexandre Archambault 75a180b7f3
Fix 2016-08-06 00:00:51 -04:00
Alexandre Archambault fbc04dcbc8
Be fine with modules like a:🅱️c
a:🅱️c standing for a:b_2.11:c
2016-08-05 14:33:04 -04:00
Alexandre Archambault da1dae49dd
Fix default path 2016-08-05 14:33:01 -04:00
Alexandre Archambault c0f1ac8602
Set default value for download dir option of boostrap command 2016-08-04 18:41:58 -04:00
Alexandre Archambault c89dc684c1
Detect main class in bootstrap command 2016-08-04 18:41:56 -04: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 97bdd1f77d
Trap unnecessary launcher stack trace / invocation exception 2016-07-23 17:43:19 +02:00
Alexandre Archambault 84ce09ab43
Set main methods accessible no matter what
Allows to run main methods from private classes (like java -cp can)
2016-07-23 17:43:16 +02:00
Alexandre Archambault efb4f6c5c0
Allow to specify Maven profiles via the CLI app 2016-07-03 16:33:01 +02:00
Alexandre Archambault 387d88d717
Accept non-finite durations as TTL 2016-05-31 15:18:33 +02:00
Alexandre Archambault b76fbf363a
Add support for TTL 2016-05-31 15:18:29 +02:00
Alexandre Archambault baa9c17d20
Better --intransitive option from the command-line tools
--intransitive accepts a dependency as argument, and adds it as
intransitive dependency - other dependencies are left untouched
2016-05-29 23:42:02 +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 00484df435
Exception.getMessage can be null 2016-05-06 13:53:53 +02:00
Alexandre Archambault 3834a9519c
Allow to print dependency trees 2016-05-06 13:53:49 +02:00
Alexandre Archambault 7266e8c025
Isolate coursier from the launched app even if coursier is proguarded
Confuses scala.util.Properties.versionNumberString from the launched app
in particular - apps launched with scala 2.11.7 end up with this method
returning 2.11.8...
2016-04-22 16:07:54 +02:00
Alexandre Archambault 241cf866a0
Switch to case-app 1.0.0-RC2, remove the need for two -- ...
...to specify user arguments with the launch command
2016-04-17 22:24:39 +02:00
Alexandre Archambault b5b7f7714f
Fix
Have IsolatedClassLoader get preserved by proguard (1.0.0-M10 regression)
2016-04-17 20:44:36 +02:00
Alexandre Archambault 14682fc703
Cleaning 2016-04-13 00:34:19 +02:00
Alexandre Archambault 105236393d Add benchmark option 2016-04-05 16:58:18 +02:00
Alexandre Archambault 62720f94e0 Add update-local and update-local-changing modes 2016-04-05 16:24:37 +02:00
Alexandre Archambault 05d8224c49 Add -P option to force display of progress bars...
...else also look at the COURSIER_PROGRESS env var to force enabling or disabling them.

This deprecates the COURSIER_NO_TERM env var.
2016-04-05 16:24:37 +02:00
Alexandre Archambault 20ad158437 Better lookup of main class by launch command
- have it only inspect the manifests of the loaded JARs, not those of coursier itself in particular
- print the found main classes if verbosity level >= 2
2016-03-22 23:53:15 +01:00
Alexandre Archambault 60f421346f Adjust default verbosity settings of CLI tool 2016-03-14 16:20:21 +01:00
Alexandre Archambault 265977cdfe Fix verbose option
Fixes https://github.com/alexarchambault/coursier/issues/86
2016-03-14 16:20:21 +01:00
Alexandre Archambault 4be4f761a6 Keep moving things around in cli module
In particular, put each command in a separate file...
2016-03-14 16:20:21 +01:00
Alexandre Archambault d4b2549c13 Move things around in cli module 2016-03-14 16:20:21 +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 49eb37b1a3 Accept configurations to be specified for dependencies in the CLI tools 2016-02-28 17:31:40 +01:00
Alexandre Archambault 0b38b0bc00 Allow to specify Java options in the generated bootstraps 2016-02-24 20:42:13 +01:00
Alexandre Archambault 60f4d3b61d Have the bootstrap command take into account the --classifier arguments 2016-02-24 20:42:13 +01:00
Alexandre Archambault dade161d3e Add --force option to the fetch CLI command, better error reporting 2016-02-22 22:58:01 +01:00
Alexandre Archambault 67bc0fcffa Remove unnecessary logback config file in CLI project 2016-02-21 20:24:27 +01:00
Alexandre Archambault bccffaab6d Add --classifier option 2016-02-20 16:00:09 +01:00
Alexandre Archambault 80807f4d93 Add --intransitive option 2016-02-20 15:56:33 +01:00
Alexandre Archambault facf76eb20 Automatically publish the proguarded JAR 2016-02-20 15:56:20 +01:00
Alexandre Archambault d7e5c23036 Fix in launcher class loader isolation
Fixes https://github.com/alexarchambault/coursier/issues/141
2016-02-17 09:54:00 +01:00
Alexandre Archambault 5bc6306608 Don't print redundant message 2016-02-12 00:01:17 +01:00
Alexandre Archambault 1ef56e9f49 No unnecessary warning message with the launch command
when using the proguarded coursier launcher
2016-02-11 23:58:35 +01:00
Alexandre Archambault 6e5bdd80a1 Add checksum CLI option 2016-02-11 22:44:51 +01:00
Alexandre Archambault 56192a2cca Replace sealed traits by abstract classes in order to generate less byte code 2016-02-07 14:14:01 +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 58c8cb4192 Print version in help message 2016-02-01 14:26:30 +01:00
Alexandre Archambault d322745ea1 Add support for user-specified exclusions from CLI 2016-01-27 11:33:14 +01:00
Alexandre Archambault 0b5316fa52 Cleaning 2016-01-27 11:33:13 +01:00
Alexandre Archambault 3d1beadea9 Slightly better error printing 2016-01-26 18:14:21 +01:00
Alexandre Archambault 061dbe2f91 Slightly different indentation in output 2016-01-26 18:14:20 +01:00
Alexandre Archambault bf7386a218 Print results of the resolution command on stdout and unindented
For easier piping to other processes
2016-01-26 18:14:20 +01:00
Alexandre Archambault 08312b9c2e Catch NoSuchMethodExceptions in launcher
Fixes https://github.com/alexarchambault/coursier/issues/76
2016-01-26 18:14:20 +01:00
Alexandre Archambault 58e6375c33 Add support for standalone launchers in bootstrap command 2016-01-26 18:14:20 +01:00
Alexandre Archambault 63d0d7d1c3 Fix help message 2016-01-26 18:14:20 +01:00
Alexandre Archambault 92e5917af6 Simplify ClassLoader isolation in launch command
No more SBT-inspired ClasspathFilter. It now just tries to find the ClassLoader that loaded coursier, and use the parent as a base to load the launched application.

Allows to remove the -b option of the bootstrap command, and remove BaseCommand (that was holding options common to all commands).
2016-01-26 18:14:20 +01:00
Alexandre Archambault 77fd840af9 Multiple isolation levels support in generated boostraps 2016-01-11 21:20:54 +01:00
Alexandre Archambault 3259fec276 Multiple isolation levels 2016-01-10 21:32:30 +01:00
Alexandre Archambault 1ebced021b Add support for isolate ClassLoaders 2016-01-10 21:32:29 +01:00
Alexandre Archambault f02d26c3bf Remove dead / erroneous code 2016-01-10 21:32:28 +01:00
Alexandre Archambault 68768cc871 Add resolve command, plus some tidying 2016-01-10 21:32:28 +01:00
Alexandre Archambault 5cbacc6e4f JDK 1.7 friendliness 2016-01-03 20:08:44 +01:00