Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

Commit

Permalink
fixes #30, #31: resolution report path changed in sbt 0.12.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudolph committed Apr 28, 2013
1 parent bfbaed2 commit dfe76a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions notes/0.7.3.markdown
@@ -0,0 +1 @@
This is a maintenance release which fixes issues with sbt 0.12.3. Thanks [ebowman](https://github.com/ebowman) for the fix.
4 changes: 3 additions & 1 deletion src/main/scala/net/virtualvoid/sbt/graph/Plugin.scala
Expand Up @@ -67,7 +67,9 @@ object Plugin extends sbt.Plugin {
def graphSettings = seq(
ivyReportFunction <<= (sbtVersion, target, projectID, ivyModule, appConfiguration, streams) map { (sbtV, target, projectID, ivyModule, config, streams) =>
sbtV match {
case Version(0, min, fix, _) if min > 12 || (min == 12 && fix >= 1) =>
case Version(0, min, fix, _) if min > 12 || (min == 12 && fix >= 3) =>
(c: String) => file("%s/resolution-cache/reports/%s-%s-%s.xml".format(target, projectID.organization, crossName(ivyModule), c))
case Version(0, min, fix, _) if min == 12 && fix >= 1 && fix < 3 =>
ivyModule.withModule(streams.log) { (i, moduleDesc, _) =>
val id = ResolveOptions.getDefaultResolveId(moduleDesc)
(c: String) => file("%s/resolution-cache/reports/%s/%s-resolved.xml" format (target, id,c))
Expand Down

1 comment on commit dfe76a2

@ebowman
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.