2023-03-04 12:19:01 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2023-09-23 09:01:43 +00:00
|
|
|
|
2023-03-04 12:19:01 +00:00
|
|
|
id 'application'
|
|
|
|
id 'jvm-test-suite'
|
2024-02-22 13:01:23 +00:00
|
|
|
id 'com.google.cloud.tools.jib' version '3.4.0'
|
2023-03-04 12:19:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
application {
|
|
|
|
mainClass = 'nu.marginalia.assistant.AssistantMain'
|
|
|
|
applicationName = 'assistant-service'
|
|
|
|
}
|
|
|
|
|
2023-03-11 10:34:51 +00:00
|
|
|
tasks.distZip.enabled = false
|
|
|
|
|
2024-02-22 13:01:23 +00:00
|
|
|
jib {
|
|
|
|
from {
|
|
|
|
image = image = rootProject.ext.dockerImageBase
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
image = 'marginalia/'+project.name
|
|
|
|
tags = ['latest']
|
|
|
|
}
|
|
|
|
container {
|
|
|
|
|
|
|
|
mainClass = application.mainClass
|
|
|
|
jvmFlags = ['-Dservice.bind-address=0.0.0.0', '-Dservice.useDockerHostname=TRUE', '-Dsystem.homePath=/wmsa']
|
|
|
|
volumes = ['/wmsa/conf', '/wmsa/model', '/wmsa/data', '/var/log/wmsa']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-04 12:19:01 +00:00
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
2023-09-23 09:01:43 +00:00
|
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
2023-03-04 12:19:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-23 15:13:40 +00:00
|
|
|
apply from: "$rootProject.projectDir/srcsets.gradle"
|
|
|
|
|
2023-03-04 12:19:01 +00:00
|
|
|
dependencies {
|
2023-03-12 09:04:48 +00:00
|
|
|
implementation project(':third-party:symspell')
|
2024-02-22 13:01:23 +00:00
|
|
|
|
|
|
|
implementation project(':code:functions:math')
|
|
|
|
implementation project(':code:functions:math:api')
|
|
|
|
implementation project(':code:functions:domain-info')
|
|
|
|
implementation project(':code:functions:domain-info:api')
|
|
|
|
|
2023-03-07 16:14:32 +00:00
|
|
|
implementation project(':code:common:config')
|
|
|
|
implementation project(':code:common:service')
|
|
|
|
implementation project(':code:common:model')
|
2023-12-09 15:29:35 +00:00
|
|
|
implementation project(':code:common:db')
|
2023-03-07 16:14:32 +00:00
|
|
|
implementation project(':code:common:service-discovery')
|
2023-03-04 12:19:01 +00:00
|
|
|
|
2023-03-12 09:50:31 +00:00
|
|
|
implementation project(':code:features-search:screenshots')
|
2023-03-04 12:19:01 +00:00
|
|
|
|
2023-12-10 16:30:43 +00:00
|
|
|
implementation project(':code:libraries:geo-ip')
|
2023-03-13 22:40:26 +00:00
|
|
|
implementation project(':code:libraries:language-processing')
|
|
|
|
implementation project(':code:libraries:term-frequency-dict')
|
2023-03-04 12:19:01 +00:00
|
|
|
|
|
|
|
implementation libs.bundles.slf4j
|
|
|
|
|
|
|
|
implementation libs.prometheus
|
2024-02-20 10:41:14 +00:00
|
|
|
implementation libs.bundles.grpc
|
2023-03-04 12:19:01 +00:00
|
|
|
implementation libs.notnull
|
|
|
|
implementation libs.guice
|
|
|
|
implementation libs.spark
|
|
|
|
implementation libs.opencsv
|
|
|
|
implementation libs.trove
|
|
|
|
implementation libs.fastutil
|
|
|
|
implementation libs.bundles.gson
|
|
|
|
implementation libs.bundles.mariadb
|
|
|
|
|
|
|
|
testImplementation libs.bundles.slf4j.test
|
|
|
|
testImplementation libs.bundles.junit
|
|
|
|
testImplementation libs.mockito
|
|
|
|
|
|
|
|
|
|
|
|
}
|