mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-10-31 17:50:11 +00:00 
			
		
		
		
	Update to Scala 2.13.4
This commit is contained in:
		
							
								
								
									
										10
									
								
								build.sbt
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								build.sbt
									
									
									
									
									
								
							| @@ -11,13 +11,13 @@ val elmCompileMode = settingKey[ElmCompileMode]("How to compile elm sources") | ||||
|  | ||||
| val scalafixSettings = Seq( | ||||
|   semanticdbEnabled := true,                        // enable SemanticDB | ||||
|   semanticdbVersion := scalafixSemanticdb.revision, //"4.3.10", // use Scalafix compatible version | ||||
|   semanticdbVersion := "4.4.0",//scalafixSemanticdb.revision | ||||
|   ThisBuild / scalafixDependencies ++= Dependencies.organizeImports | ||||
| ) | ||||
|  | ||||
| val sharedSettings = Seq( | ||||
|   organization := "com.github.eikek", | ||||
|   scalaVersion := "2.13.3", | ||||
|   scalaVersion := "2.13.4", | ||||
|   scalacOptions ++= Seq( | ||||
|     "-deprecation", | ||||
|     "-encoding", | ||||
| @@ -671,7 +671,8 @@ def packageTools(logger: Logger, dir: File, version: String): Seq[File] = { | ||||
|       wx / "icons" / "logo-96.png"     -> "icons/logo-96.png", | ||||
|       wx / "manifest.json"             -> "manifest.json" | ||||
|     ), | ||||
|     webext | ||||
|     webext, | ||||
|     None | ||||
|   ) | ||||
|  | ||||
|   val excludes = Seq(wx, target) | ||||
| @@ -688,7 +689,8 @@ def packageTools(logger: Logger, dir: File, version: String): Seq[File] = { | ||||
|       wx / "native/app_manifest.json" -> s"docspell-tools-${version}/firefox/native/app_manifest.json", | ||||
|       wx / "native/native.py"         -> s"docspell-tools-${version}/firefox/native/native.py" | ||||
|     ) ++ files, | ||||
|     archive | ||||
|     archive, | ||||
|     None | ||||
|   ) | ||||
|  | ||||
|   Seq(archive) | ||||
|   | ||||
| @@ -211,6 +211,8 @@ object LenientUri { | ||||
|                 Right(LenientUri(nl, None, path, query, frag)) | ||||
|             } | ||||
|         } | ||||
|       case _ => | ||||
|         sys.error("Unreachable code") | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   | ||||
| @@ -83,7 +83,7 @@ private[extern] object ExternConv { | ||||
|           case false => | ||||
|             successPdf(File.readAll(out, blocker, chunkSize)).pure[F] | ||||
|         } | ||||
|       case true if result.rc != 0 => | ||||
|       case true => | ||||
|         logger.warn(s"Command not successful (rc=${result.rc}), but file exists.") *> | ||||
|           successPdf(File.readAll(out, blocker, chunkSize)).pure[F] | ||||
|  | ||||
|   | ||||
| @@ -53,7 +53,7 @@ object MailContext { | ||||
|         case 1          => "**tomorrow**" | ||||
|         case -1         => s"**yesterday**" | ||||
|         case n if n > 0 => s"in $n days" | ||||
|         case n if n < 0 => s"${n * -1} days ago" | ||||
|         case n          => s"${n * -1} days ago" | ||||
|       } | ||||
|       ItemData( | ||||
|         i.id, | ||||
|   | ||||
| @@ -175,9 +175,9 @@ object RUserEmail { | ||||
|     val uLogin = RUser.Columns.login.prefix("u") | ||||
|     val from   = table ++ fr"m INNER JOIN" ++ RUser.table ++ fr"u ON" ++ mUid.is(uId) | ||||
|     val cond = Seq(uColl.is(accId.collective), uLogin.is(accId.user)) ++ (nameQ match { | ||||
|       case Some(str) if exact  => Seq(mName.is(str)) | ||||
|       case Some(str) if !exact => Seq(mName.lowerLike(s"%${str.toLowerCase}%")) | ||||
|       case None                => Seq.empty | ||||
|       case Some(str) if exact => Seq(mName.is(str)) | ||||
|       case Some(str)          => Seq(mName.lowerLike(s"%${str.toLowerCase}%")) | ||||
|       case None               => Seq.empty | ||||
|     }) | ||||
|  | ||||
|     (selectSimple(all.map(_.prefix("m")), from, and(cond)) ++ orderBy(mName.f)) | ||||
|   | ||||
| @@ -159,9 +159,9 @@ object RUserImap { | ||||
|     val uLogin = RUser.Columns.login.prefix("u") | ||||
|     val from   = table ++ fr"m INNER JOIN" ++ RUser.table ++ fr"u ON" ++ mUid.is(uId) | ||||
|     val cond = Seq(uColl.is(accId.collective), uLogin.is(accId.user)) ++ (nameQ match { | ||||
|       case Some(str) if exact  => Seq(mName.is(str)) | ||||
|       case Some(str) if !exact => Seq(mName.lowerLike(s"%${str.toLowerCase}%")) | ||||
|       case None                => Seq.empty | ||||
|       case Some(str) if exact => Seq(mName.is(str)) | ||||
|       case Some(str)          => Seq(mName.lowerLike(s"%${str.toLowerCase}%")) | ||||
|       case None               => Seq.empty | ||||
|     }) | ||||
|  | ||||
|     (selectSimple(all.map(_.prefix("m")), from, and(cond)) ++ orderBy(mName.f)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user