From cb9dfc590625cd8af93da3d63f0e8471a6731017 Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Sun, 28 Jun 2015 18:14:53 +0200 Subject: [PATCH] Update release notes --- notes/0.1.0-M1.markdown | 45 +++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/notes/0.1.0-M1.markdown b/notes/0.1.0-M1.markdown index 199c5509b..28adf27b1 100644 --- a/notes/0.1.0-M1.markdown +++ b/notes/0.1.0-M1.markdown @@ -9,33 +9,34 @@ Test it in your browser with its [Scala JS demo](https://alexarchambault.github. ### Overview -Use it like -```scala -val repositories = Seq( - Repository.ivy2Local, - Repository.mavenCentral -) +Use it like: -val dependencies = Set( - Dependency(Module("com.github.alexarchambault", "argonaut-shapeless_6.1_2.11"), "0.2.0"), - Dependency(Module("com.github.alexarchambault", "shapeless-refined-std_2.11"), "0.1.1") -) + val repositories = Seq( + Repository.ivy2Local, + Repository.mavenCentral + ) -val resolution = - Resolution(dependencies) // Initial resolution state - .process // Resolution process (scalaz-stream like) - .run(repositories) // Run the resolution with these repositories - .run // Run the resulting Task[Resolution] + val dependencies = Set( + Dependency(Module("com.github.alexarchambault", "argonaut-shapeless_6.1_2.11"), "0.2.0"), + Dependency(Module("com.github.alexarchambault", "shapeless-refined-std_2.11"), "0.1.1") + ) -val allDependencies = resolution.minDependencies // Set[Dependency] -val allArtifacts = resolution.artifacts // Seq[Artifact] + val resolution = + Resolution(dependencies) // Initial resolution state + .process // Resolution process (scalaz-stream like) + .run(repositories) // Run the resolution with these repositories + .run // Run the resulting Task[Resolution] -val errors = resolution.errors // Metadata errors (not found, malformed, ...) -val conflicts = resolution.conflicts // Version conflicts + // Let's inspect the results -// URLs of the artifacts (JARs) -val allArtifactsUrls = allArtifacts.map(_.url) // Seq[String] -``` + val allDependencies = resolution.minDependencies // Set[Dependency] + val allArtifacts = resolution.artifacts // Seq[Artifact] + + val errors = resolution.errors // Metadata errors (not found, malformed, ...) + val conflicts = resolution.conflicts // Version conflicts + + // URLs of the artifacts (JARs) + val allArtifactsUrls = allArtifacts.map(_.url) // Seq[String] Both metadata and artifacts can be cached. Resolution per se only fetches metadata, and gives you back artifact URLs.