mirror of https://github.com/sbt/sbt.git
Derive resolution-cache dir location from ivyConfiguration, fixes #150
This commit is contained in:
parent
e597bcf804
commit
71f0e933d4
|
|
@ -98,14 +98,14 @@ object DependencyGraphSettings {
|
||||||
licenseInfo := showLicenseInfo(moduleGraph.value, streams.value)) ++ AsciiGraph.asciiGraphSetttings)
|
licenseInfo := showLicenseInfo(moduleGraph.value, streams.value)) ++ AsciiGraph.asciiGraphSetttings)
|
||||||
|
|
||||||
def ivyReportFunctionTask = Def.task {
|
def ivyReportFunctionTask = Def.task {
|
||||||
val crossTarget = Keys.crossTarget.value
|
val ivyConfig = Keys.ivyConfiguration.value.asInstanceOf[InlineIvyConfiguration]
|
||||||
val projectID = Keys.projectID.value
|
val projectID = Keys.projectID.value
|
||||||
val ivyModule = Keys.ivyModule.value
|
val ivyModule = Keys.ivyModule.value
|
||||||
|
|
||||||
(config: String) ⇒ {
|
(config: String) ⇒ {
|
||||||
val org = projectID.organization
|
val org = projectID.organization
|
||||||
val name = crossName(ivyModule)
|
val name = crossName(ivyModule)
|
||||||
file(s"${crossTarget}/resolution-cache/reports/$org-$name-$config.xml")
|
new File(ivyConfig.resolutionCacheDir.get, s"reports/$org-$name-$config.xml")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue