Move scheduler code into separate module

This commit is contained in:
eikek
2022-03-12 14:10:49 +01:00
parent 0739957fd7
commit 0ce3abb3ff
20 changed files with 1376 additions and 3 deletions

View File

@ -519,6 +519,29 @@ val pubsubNaive = project
)
.dependsOn(common, pubsubApi, store % "compile->compile;test->test")
val schedulerApi = project
.in(file("modules/scheduler/api"))
.disablePlugins(RevolverPlugin)
.settings(sharedSettings)
.withTestSettingsDependsOn(loggingScribe)
.settings(
name := "docspell-scheduler-api",
libraryDependencies ++=
Dependencies.fs2Core ++
Dependencies.circeCore
)
.dependsOn(loggingApi, common, store, pubsubApi)
val schedulerImpl = project
.in(file("modules/scheduler/impl"))
.disablePlugins(RevolverPlugin)
.settings(sharedSettings)
.withTestSettingsDependsOn(loggingScribe)
.settings(
name := "docspell-scheduler-impl"
)
.dependsOn(schedulerApi, notificationApi, pubsubApi)
val extract = project
.in(file("modules/extract"))
.disablePlugins(RevolverPlugin)
@ -641,7 +664,16 @@ val backend = project
Dependencies.http4sClient ++
Dependencies.emil
)
.dependsOn(store, notificationApi, joexapi, ftsclient, totp, pubsubApi, loggingApi)
.dependsOn(
store,
notificationApi,
joexapi,
ftsclient,
totp,
pubsubApi,
loggingApi,
schedulerApi
)
val oidc = project
.in(file("modules/oidc"))
@ -732,7 +764,8 @@ val joex = project
restapi,
ftssolr,
pubsubNaive,
notificationImpl
notificationImpl,
schedulerImpl
)
val restserver = project
@ -902,7 +935,9 @@ val root = project
pubsubApi,
pubsubNaive,
notificationApi,
notificationImpl
notificationImpl,
schedulerApi,
schedulerImpl
)
// --- Helpers