From 5abd6a0008ecc5225d7a2be277e372435cf8b1d2 Mon Sep 17 00:00:00 2001 From: hoangmaihuy Date: Tue, 19 Dec 2023 15:24:24 +0700 Subject: [PATCH] feat: missinglinkCheckCached --- .../hoangmaihuy/missinglink/MissinglinkCheckModule.scala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mill-missinglink/src/io/github/hoangmaihuy/missinglink/MissinglinkCheckModule.scala b/mill-missinglink/src/io/github/hoangmaihuy/missinglink/MissinglinkCheckModule.scala index a64c965..cf2c77a 100644 --- a/mill-missinglink/src/io/github/hoangmaihuy/missinglink/MissinglinkCheckModule.scala +++ b/mill-missinglink/src/io/github/hoangmaihuy/missinglink/MissinglinkCheckModule.scala @@ -41,6 +41,10 @@ trait MissinglinkCheckModule extends JavaModule { /** Dependencies that are excluded from analysis */ def missinglinkExcludedDependencies: T[Seq[DependencyFilter]] = T { Seq.empty[DependencyFilter] } + def missinglinkCheckCached = T { + missinglinkCheck() + } + def missinglinkCheck(): Command[Unit] = T.command { assert( missinglinkIgnoreSourcePackages().isEmpty || missinglinkTargetSourcePackages().isEmpty,