Derive resolution-cache dir location from ivyConfiguration, fixes #150

This commit is contained in:
Johannes Rudolph 2018-07-17 11:41:31 +02:00
parent e597bcf804
commit 71f0e933d4
No known key found for this signature in database
GPG Key ID: 4D293A24CCD39E19
1 changed files with 2 additions and 2 deletions

View File

@ -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")
} }
} }