mirror of https://github.com/sbt/sbt.git
generated .graphml files name contain the configuration name
This commit is contained in:
parent
b30519f2d4
commit
18d2663a88
|
|
@ -42,7 +42,7 @@ object Plugin extends sbt.Plugin {
|
||||||
ivyReport <<= ivyReportFunction map (_(config.toString)) dependsOn(update),
|
ivyReport <<= ivyReportFunction map (_(config.toString)) dependsOn(update),
|
||||||
asciiGraph <<= asciiGraphTask,
|
asciiGraph <<= asciiGraphTask,
|
||||||
dependencyGraph <<= printAsciiGraphTask,
|
dependencyGraph <<= printAsciiGraphTask,
|
||||||
dependencyGraphML <<= dependencyGraphMLTask
|
dependencyGraphML <<= dependencyGraphMLTask(config)
|
||||||
))
|
))
|
||||||
|
|
||||||
def asciiGraphTask = (ivyReport) map { report =>
|
def asciiGraphTask = (ivyReport) map { report =>
|
||||||
|
|
@ -52,9 +52,9 @@ object Plugin extends sbt.Plugin {
|
||||||
def printAsciiGraphTask =
|
def printAsciiGraphTask =
|
||||||
(streams, asciiGraph) map (_.log.info(_))
|
(streams, asciiGraph) map (_.log.info(_))
|
||||||
|
|
||||||
def dependencyGraphMLTask =
|
def dependencyGraphMLTask(config: Configuration) =
|
||||||
(ivyReport, target, streams) map { (report, target, streams) =>
|
(ivyReport, target, streams) map { (report, target, streams) =>
|
||||||
val resultFile = target / "dependencies.graphml"
|
val resultFile = target / "dependencies-%s.graphml".format(config.toString)
|
||||||
IvyGraphMLDependencies.transform(report.getAbsolutePath, resultFile.getAbsolutePath)
|
IvyGraphMLDependencies.transform(report.getAbsolutePath, resultFile.getAbsolutePath)
|
||||||
streams.log.info("Wrote dependency graph to '%s'" format resultFile)
|
streams.log.info("Wrote dependency graph to '%s'" format resultFile)
|
||||||
resultFile
|
resultFile
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue