diff --git a/README.md b/README.md index ff01a3052..0cdd72f1f 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Lastly, it can be used programmatically via its [API](#api) and has a Scala JS [ Enable the SBT plugin by adding ```scala -addSbtPlugin("com.github.alexarchambault" % "coursier-sbt-plugin" % "1.0.0-M8") +addSbtPlugin("com.github.alexarchambault" % "coursier-sbt-plugin" % "1.0.0-M9") ``` to `~/.sbt/0.13/plugins/build.sbt` (enables it globally), or to the `project/plugins.sbt` file of a SBT project. Tested with SBT 0.13.8 / 0.13.9. @@ -99,8 +99,8 @@ Fetching artifacts Add to your `build.sbt` ```scala libraryDependencies ++= Seq( - "com.github.alexarchambault" %% "coursier" % "1.0.0-M8", - "com.github.alexarchambault" %% "coursier-cache" % "1.0.0-M8" + "com.github.alexarchambault" %% "coursier" % "1.0.0-M9", + "com.github.alexarchambault" %% "coursier-cache" % "1.0.0-M9" ) ``` @@ -203,7 +203,7 @@ of the cache used by a particular project, in case you have any doubt about what Enable the SBT plugin globally by adding ```scala -addSbtPlugin("com.github.alexarchambault" % "coursier-sbt-plugin" % "1.0.0-M8") +addSbtPlugin("com.github.alexarchambault" % "coursier-sbt-plugin" % "1.0.0-M9") ``` to `~/.sbt/0.13/plugins/build.sbt` @@ -339,7 +339,7 @@ The `bootstrap` generates tiny bootstrap launchers, able to pull their dependenc repositories on first launch. For example, the launcher of coursier is [generated](https://github.com/alexarchambault/coursier/blob/master/project/generate-launcher.sh) with a command like ``` $ ./coursier bootstrap \ - com.github.alexarchambault:coursier-cli_2.11:1.0.0-M8 \ + com.github.alexarchambault:coursier-cli_2.11:1.0.0-M9 \ -b -f -o coursier \ -M coursier.cli.Coursier ``` @@ -351,12 +351,12 @@ See `./coursier bootstrap --help` for a list of the available options. Add to your `build.sbt` ```scala libraryDependencies ++= Seq( - "com.github.alexarchambault" %% "coursier" % "1.0.0-M8", - "com.github.alexarchambault" %% "coursier-cache" % "1.0.0-M8" + "com.github.alexarchambault" %% "coursier" % "1.0.0-M9", + "com.github.alexarchambault" %% "coursier-cache" % "1.0.0-M9" ) ``` -The first module, `"com.github.alexarchambault" %% "coursier" % "1.0.0-M8"`, mainly depends on +The first module, `"com.github.alexarchambault" %% "coursier" % "1.0.0-M9"`, mainly depends on `scalaz-core` (and only it, *not* `scalaz-concurrent` for example). It contains among others, definitions, mainly in [`Definitions.scala`](https://github.com/alexarchambault/coursier/blob/master/core/shared/src/main/scala/coursier/core/Definitions.scala), @@ -366,7 +366,7 @@ that expects to be given metadata, wrapped in any `Monad`, then feeds these to ` you the final `Resolution`, wrapped in the same `Monad` it was given input. This final `Resolution` has all the dependencies, including the transitive ones. -The second module, `"com.github.alexarchambault" %% "coursier-cache" % "1.0.0-M8"`, is precisely in charge of fetching +The second module, `"com.github.alexarchambault" %% "coursier-cache" % "1.0.0-M9"`, is precisely in charge of fetching these input metadata. It uses `scalaz.concurrent.Task` as a `Monad` to wrap them. It also fetches artifacts (JARs, etc.). It caches all of these (metadata and artifacts) on disk, and validates checksums too. diff --git a/coursier b/coursier index e067ee3b1..6f6f3b88a 100755 Binary files a/coursier and b/coursier differ diff --git a/coursier-standalone b/coursier-standalone index 1cdcb0430..bd6c81beb 100755 Binary files a/coursier-standalone and b/coursier-standalone differ diff --git a/doc/README.md b/doc/README.md index dac98922e..b15f9be3d 100644 --- a/doc/README.md +++ b/doc/README.md @@ -62,7 +62,7 @@ Lastly, it can be used programmatically via its [API](#api) and has a Scala JS [ Enable the SBT plugin by adding ```scala -addSbtPlugin("com.github.alexarchambault" % "coursier-sbt-plugin" % "1.0.0-M8") +addSbtPlugin("com.github.alexarchambault" % "coursier-sbt-plugin" % "1.0.0-M9") ``` to `~/.sbt/0.13/plugins/build.sbt` (enables it globally), or to the `project/plugins.sbt` file of a SBT project. Tested with SBT 0.13.8 / 0.13.9. @@ -99,8 +99,8 @@ Fetching artifacts Add to your `build.sbt` ```scala libraryDependencies ++= Seq( - "com.github.alexarchambault" %% "coursier" % "1.0.0-M8", - "com.github.alexarchambault" %% "coursier-cache" % "1.0.0-M8" + "com.github.alexarchambault" %% "coursier" % "1.0.0-M9", + "com.github.alexarchambault" %% "coursier-cache" % "1.0.0-M9" ) ``` @@ -225,7 +225,7 @@ of the cache used by a particular project, in case you have any doubt about what Enable the SBT plugin globally by adding ```scala -addSbtPlugin("com.github.alexarchambault" % "coursier-sbt-plugin" % "1.0.0-M8") +addSbtPlugin("com.github.alexarchambault" % "coursier-sbt-plugin" % "1.0.0-M9") ``` to `~/.sbt/0.13/plugins/build.sbt` @@ -363,7 +363,7 @@ The `bootstrap` generates tiny bootstrap launchers, able to pull their dependenc repositories on first launch. For example, the launcher of coursier is [generated](https://github.com/alexarchambault/coursier/blob/master/project/generate-launcher.sh) with a command like ``` $ ./coursier bootstrap \ - com.github.alexarchambault:coursier-cli_2.11:1.0.0-M8 \ + com.github.alexarchambault:coursier-cli_2.11:1.0.0-M9 \ -b -f -o coursier \ -M coursier.cli.Coursier ``` @@ -375,12 +375,12 @@ See `./coursier bootstrap --help` for a list of the available options. Add to your `build.sbt` ```scala libraryDependencies ++= Seq( - "com.github.alexarchambault" %% "coursier" % "1.0.0-M8", - "com.github.alexarchambault" %% "coursier-cache" % "1.0.0-M8" + "com.github.alexarchambault" %% "coursier" % "1.0.0-M9", + "com.github.alexarchambault" %% "coursier-cache" % "1.0.0-M9" ) ``` -The first module, `"com.github.alexarchambault" %% "coursier" % "1.0.0-M8"`, mainly depends on +The first module, `"com.github.alexarchambault" %% "coursier" % "1.0.0-M9"`, mainly depends on `scalaz-core` (and only it, *not* `scalaz-concurrent` for example). It contains among others, definitions, mainly in [`Definitions.scala`](https://github.com/alexarchambault/coursier/blob/master/core/shared/src/main/scala/coursier/core/Definitions.scala), @@ -390,7 +390,7 @@ that expects to be given metadata, wrapped in any `Monad`, then feeds these to ` you the final `Resolution`, wrapped in the same `Monad` it was given input. This final `Resolution` has all the dependencies, including the transitive ones. -The second module, `"com.github.alexarchambault" %% "coursier-cache" % "1.0.0-M8"`, is precisely in charge of fetching +The second module, `"com.github.alexarchambault" %% "coursier-cache" % "1.0.0-M9"`, is precisely in charge of fetching these input metadata. It uses `scalaz.concurrent.Task` as a `Monad` to wrap them. It also fetches artifacts (JARs, etc.). It caches all of these (metadata and artifacts) on disk, and validates checksums too. diff --git a/notes/1.0.0-M9.markdown b/notes/1.0.0-M9.markdown new file mode 100644 index 000000000..3eaa029cc --- /dev/null +++ b/notes/1.0.0-M9.markdown @@ -0,0 +1,25 @@ +### Changes + +* Track errored files in cache when possible, so as not to try to download them again ([#174]) +* Force the versions of the `scala-{library,reflect,compiler}` and `scalap` modules from `org.scala-lang` to the current Scala version, in the SBT plugin ([#172]) +* Launcher apps generated by the `bootstrap` command can involve specific classifiers ([#173]) +* Custom Java options can be put in the launcher apps generated by the `bootstrap` command ([#173]) +* Have the coursier launcher depend only the published proguarded standalone version of the coursier-cli module ([#173]) +* Add support for the `sbt.override.build.repos` flag, in the SBT plugin ([#167]) +* Escape special characters in the cache ([#167]) +* Add `--force` option to the `fetch` command, to fetch artifacts even if the resolution is errored ([#161]) +* Have the `COURSIER_NO_TERM` environment variable disable progress bars both from the CLI app and the SBT plugin ([#163]) +* Allow local Maven repositories, in the SBT plugin ([#155]) + + +[#155]: https://github.com/alexarchambault/coursier/pull/155 +[#161]: https://github.com/alexarchambault/coursier/pull/161 +[#163]: https://github.com/alexarchambault/coursier/pull/163 +[#167]: https://github.com/alexarchambault/coursier/pull/167 +[#172]: https://github.com/alexarchambault/coursier/pull/172 +[#173]: https://github.com/alexarchambault/coursier/pull/173 +[#174]: https://github.com/alexarchambault/coursier/pull/174 + +### Non-backward compatible changes + +* Minor binary and source compatiblity breaking on `FileError.NotFound` (addition of an optional parameter) diff --git a/project/generate-launcher.sh b/project/generate-launcher.sh index 94474d5e9..81f999a63 100755 --- a/project/generate-launcher.sh +++ b/project/generate-launcher.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=1.0.0-M8 +VERSION=1.0.0-M9 CACHE_VERSION=v1 SBTPACK_LAUNCHER="$(dirname "$0")/../cli/target/pack/bin/coursier"