From 151e5aa53e511c9c250548e162e0eca088f8011d Mon Sep 17 00:00:00 2001 From: Wojciech Mazur Date: Sat, 17 Aug 2024 01:26:12 +0200 Subject: [PATCH] Fix sbt plugin --- project-builder/sbt/CommunityBuildPlugin.scala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/project-builder/sbt/CommunityBuildPlugin.scala b/project-builder/sbt/CommunityBuildPlugin.scala index 02d3b2ae..e7d3f70f 100644 --- a/project-builder/sbt/CommunityBuildPlugin.scala +++ b/project-builder/sbt/CommunityBuildPlugin.scala @@ -523,8 +523,11 @@ object CommunityBuildPlugin extends AutoPlugin { } println(s"Compile scalacOptions: ${scalacOptions}") val compileResult = eval(Compile / compile) match { - case EvalResult.Failure(reasons, evalTime) if reasons.exists { case ex: AssertionError => - ex.getMessage.contains("overlapping patches") && scalacOptions.contains("-rewrite") + case EvalResult.Failure(reasons, _) if reasons.exists { + case ex: AssertionError => + ex.getMessage.contains("overlapping patches") && + scalacOptions.contains("-rewrite") + case _ => false } => eval(Compile / compile) case result => result