@@ -97,13 +97,14 @@ object GithubDependencyGraphPlugin extends AutoPlugin {
97
97
98
98
private def manifestTask : Def .Initialize [Task [Manifest ]] = Def .task {
99
99
// updateFull is needed to have information about callers and reconstruct dependency tree
100
- val report = Keys .updateFull.value
100
+ val reportResult = Keys .updateFull.result .value
101
101
val projectID = Keys .projectID.value
102
102
val scalaVersion = (Keys .artifactName / Keys .scalaVersion).value
103
103
val scalaBinaryVersion = (Keys .artifactName / Keys .scalaBinaryVersion).value
104
104
val crossVersion = CrossVersion .apply(scalaVersion, scalaBinaryVersion)
105
105
val allDirectDependencies = Keys .allDependencies.value
106
106
val baseDirectory = Keys .baseDirectory.value
107
+ val logger = Keys .streams.value.log
107
108
108
109
def getReference (module : ModuleID ): String =
109
110
crossVersion(module)
@@ -115,6 +116,14 @@ object GithubDependencyGraphPlugin extends AutoPlugin {
115
116
val moduleReports = mutable.Buffer [(ModuleReport , ConfigRef )]()
116
117
val allDependencies = mutable.Buffer [(String , String )]()
117
118
119
+ val report = reportResult match {
120
+ case Inc (cause) =>
121
+ val moduleName = crossVersion(projectID).name
122
+ logger.error(s " Failed to resolve the dependencies of $moduleName" )
123
+ throw cause
124
+ case Value (report) => report
125
+ }
126
+
118
127
for {
119
128
configReport <- report.configurations
120
129
moduleReport <- configReport.modules
0 commit comments