Skip to content

Commit

Permalink
Add printf after check success
Browse files Browse the repository at this point in the history
  • Loading branch information
Roiocam committed Jan 29, 2024
1 parent fac0921 commit dd026c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/scala/com/roiocam/DependWalkerPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ object DependWalkerPlugin extends AutoPlugin {
case Some(c) => c.dependencies.toSet;
case None => Set.empty
}
if (!dependWalk(depends, walkTask.expectDepend)) {
if (dependWalk(depends, walkTask.expectDepend)) {
println(
s"Depend verified in the tree of ${currentProject.project} / ${key.scope.config} / ${key.key}"
)
} else {
throw new Exception(
s"Expect depend <${walkTask.expectDepend}> not in the dependency tree of ${walkTask.executeTask}"
)
Expand Down

0 comments on commit dd026c3

Please sign in to comment.