Merge pull request #156 from jrudolph/fix-150

Derive resolution-cache dir location from ivyConfiguration, fixes #150
This commit is contained in:
Johannes Rudolph 2018-07-17 11:50:06 +02:00 committed by GitHub
commit 1c35c67df3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
def ivyReportFunctionTask = Def.task {
val crossTarget = Keys.crossTarget.value
val ivyConfig = Keys.ivyConfiguration.value.asInstanceOf[InlineIvyConfiguration]
val projectID = Keys.projectID.value
val ivyModule = Keys.ivyModule.value
(config: String) {
val org = projectID.organization
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")
}
}