mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 06:07:24 +02:00
Update release notes
This commit is contained in:
@@ -9,8 +9,8 @@ Test it in your browser with its [Scala JS demo](https://alexarchambault.github.
|
|||||||
|
|
||||||
### Overview
|
### Overview
|
||||||
|
|
||||||
Use it like
|
Use it like:
|
||||||
```scala
|
|
||||||
val repositories = Seq(
|
val repositories = Seq(
|
||||||
Repository.ivy2Local,
|
Repository.ivy2Local,
|
||||||
Repository.mavenCentral
|
Repository.mavenCentral
|
||||||
@@ -27,6 +27,8 @@ val resolution =
|
|||||||
.run(repositories) // Run the resolution with these repositories
|
.run(repositories) // Run the resolution with these repositories
|
||||||
.run // Run the resulting Task[Resolution]
|
.run // Run the resulting Task[Resolution]
|
||||||
|
|
||||||
|
// Let's inspect the results
|
||||||
|
|
||||||
val allDependencies = resolution.minDependencies // Set[Dependency]
|
val allDependencies = resolution.minDependencies // Set[Dependency]
|
||||||
val allArtifacts = resolution.artifacts // Seq[Artifact]
|
val allArtifacts = resolution.artifacts // Seq[Artifact]
|
||||||
|
|
||||||
@@ -35,7 +37,6 @@ val conflicts = resolution.conflicts // Version conflicts
|
|||||||
|
|
||||||
// URLs of the artifacts (JARs)
|
// URLs of the artifacts (JARs)
|
||||||
val allArtifactsUrls = allArtifacts.map(_.url) // Seq[String]
|
val allArtifactsUrls = allArtifacts.map(_.url) // Seq[String]
|
||||||
```
|
|
||||||
|
|
||||||
Both metadata and artifacts can be cached. Resolution per se only fetches
|
Both metadata and artifacts can be cached. Resolution per se only fetches
|
||||||
metadata, and gives you back artifact URLs.
|
metadata, and gives you back artifact URLs.
|
||||||
|
|||||||
Reference in New Issue
Block a user