2023-03-04 12:19:01 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2023-11-12 14:37:25 +00:00
|
|
|
id 'io.freefair.sass-base' version '8.4'
|
|
|
|
id 'io.freefair.sass-java' version '8.4'
|
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'
|
|
|
|
}
|
|
|
|
|
|
|
|
jib {
|
|
|
|
from {
|
|
|
|
image = image = rootProject.ext.dockerImageBase
|
|
|
|
}
|
|
|
|
to {
|
2024-02-25 10:08:49 +00:00
|
|
|
image = rootProject.ext.dockerImageRegistry+'/'+project.name
|
2024-02-22 13:01:23 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
application {
|
|
|
|
mainClass = 'nu.marginalia.search.SearchMain'
|
|
|
|
applicationName = 'search-service'
|
|
|
|
}
|
|
|
|
|
2023-03-11 10:34:51 +00:00
|
|
|
tasks.distZip.enabled = false
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
2023-11-12 14:37:25 +00:00
|
|
|
sass {
|
|
|
|
sourceMapEnabled = true
|
|
|
|
sourceMapEmbed = true
|
|
|
|
outputStyle = EXPANDED
|
|
|
|
}
|
2024-02-22 13:01:23 +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-25 14:26:17 +00:00
|
|
|
implementation project(':code:common:db')
|
2023-03-07 16:14:32 +00:00
|
|
|
implementation project(':code:common:model')
|
|
|
|
implementation project(':code:common:service')
|
|
|
|
implementation project(':code:common:config')
|
2024-02-22 17:01:35 +00:00
|
|
|
implementation project(':code:index:query')
|
2023-03-04 12:19:01 +00:00
|
|
|
|
2023-03-07 16:14:32 +00:00
|
|
|
implementation project(':code:libraries:easy-lsh')
|
|
|
|
implementation project(':code:libraries:language-processing')
|
2023-03-11 12:48:40 +00:00
|
|
|
implementation project(':code:libraries:braille-block-punch-cards')
|
2023-03-13 22:40:26 +00:00
|
|
|
implementation project(':code:libraries:term-frequency-dict')
|
2023-03-04 12:19:01 +00:00
|
|
|
|
2024-02-22 13:01:23 +00:00
|
|
|
implementation project(':code:functions:math:api')
|
|
|
|
implementation project(':code:functions:domain-info:api')
|
2024-02-22 14:27:39 +00:00
|
|
|
implementation project(':code:functions:search-query:api')
|
|
|
|
|
|
|
|
|
2024-02-22 17:01:35 +00:00
|
|
|
implementation project(':code:index:api')
|
2023-03-07 16:14:32 +00:00
|
|
|
implementation project(':code:common:service-discovery')
|
|
|
|
implementation project(':code:common:renderer')
|
2023-03-04 12:19:01 +00:00
|
|
|
|
2023-03-12 09:50:31 +00:00
|
|
|
implementation project(':code:features-search:screenshots')
|
|
|
|
implementation project(':code:features-search:random-websites')
|
2023-12-26 15:21:40 +00:00
|
|
|
implementation project(':code:features-search:feedlot-client')
|
2023-03-04 12:19:01 +00:00
|
|
|
|
|
|
|
implementation libs.bundles.slf4j
|
|
|
|
|
2023-12-05 14:47:21 +00:00
|
|
|
implementation libs.roaringbitmap
|
2023-03-04 12:19:01 +00:00
|
|
|
implementation libs.prometheus
|
|
|
|
implementation libs.notnull
|
|
|
|
implementation libs.guice
|
2023-11-10 14:26:38 +00:00
|
|
|
implementation libs.handlebars
|
2023-03-04 12:19:01 +00:00
|
|
|
implementation libs.spark
|
|
|
|
implementation libs.opencsv
|
|
|
|
implementation libs.trove
|
|
|
|
implementation libs.fastutil
|
|
|
|
implementation libs.bundles.gson
|
|
|
|
implementation libs.bundles.mariadb
|
|
|
|
implementation libs.bundles.nlp
|
|
|
|
|
|
|
|
testImplementation libs.bundles.slf4j.test
|
|
|
|
testImplementation libs.bundles.junit
|
|
|
|
testImplementation libs.mockito
|
|
|
|
|
|
|
|
}
|
|
|
|
|