mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00

Previously, in order to load encyclopedia data into the search engine, it was necessary to use the encyclopedia.marginalia.nu converter to first create a .db-file. This isn't very ergonomic, so parts of that code-base was lifted in as a 3rd party library, and conversion from .zim to .db is now done automatically. The output file name is based on the original filename, plus a crc32 hash and a .db-ending, to ensure we can recycle the data on repeat loads.
27 lines
497 B
Groovy
27 lines
497 B
Groovy
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation libs.jsoup
|
|
implementation libs.notnull
|
|
implementation libs.bundles.gson
|
|
implementation libs.zstd
|
|
implementation libs.bundles.slf4j
|
|
|
|
implementation project(':code:libraries:blocking-thread-pool')
|
|
|
|
implementation project(':third-party:xz')
|
|
implementation project(':third-party:openzim')
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|