mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 13:19:02 +00:00

This is primarily to make the code a bit easier to reason about, and will reduce the level of indirection and data copying in the search-servi->query-service->index-service communication chain.
62 lines
1.8 KiB
Groovy
62 lines
1.8 KiB
Groovy
plugins {
|
|
id 'java'
|
|
|
|
id 'application'
|
|
id 'jvm-test-suite'
|
|
id 'com.google.cloud.tools.jib' version '3.4.3'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(rootProject.ext.jvmVersion))
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClass = 'nu.marginalia.api.ApiMain'
|
|
applicationName = 'api-service'
|
|
}
|
|
|
|
tasks.distZip.enabled = false
|
|
|
|
apply from: "$rootProject.projectDir/srcsets.gradle"
|
|
apply from: "$rootProject.projectDir/docker.gradle"
|
|
|
|
dependencies {
|
|
implementation project(':code:common:db')
|
|
implementation project(':code:common:model')
|
|
implementation project(':code:common:service')
|
|
implementation project(':code:common:config')
|
|
implementation project(':code:functions:search-query:api')
|
|
implementation project(':code:index:query')
|
|
|
|
implementation libs.bundles.slf4j
|
|
|
|
implementation libs.prometheus
|
|
implementation libs.notnull
|
|
implementation libs.guava
|
|
implementation dependencies.create(libs.guice.get()) {
|
|
exclude group: 'com.google.guava'
|
|
}
|
|
implementation dependencies.create(libs.spark.get()) {
|
|
exclude group: 'org.eclipse.jetty'
|
|
}
|
|
implementation libs.bundles.jetty
|
|
implementation libs.opencsv
|
|
implementation libs.trove
|
|
implementation libs.protobuf
|
|
implementation libs.fastutil
|
|
implementation libs.bundles.gson
|
|
implementation libs.bundles.mariadb
|
|
|
|
testImplementation libs.bundles.slf4j.test
|
|
testImplementation libs.bundles.junit
|
|
testImplementation libs.mockito
|
|
testImplementation platform('org.testcontainers:testcontainers-bom:1.17.4')
|
|
testImplementation libs.commons.codec
|
|
testImplementation 'org.testcontainers:mariadb:1.17.4'
|
|
testImplementation 'org.testcontainers:junit-jupiter:1.17.4'
|
|
testImplementation project(':code:libraries:test-helpers')
|
|
}
|
|
|