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

This provides a much cleaner separation of concerns, and makes it possible to get rid of a lot of the gunkier parts of the index service. It will also permit lowering the Xmx on the index service a fair bit, so we can get CompressedOOps again :D
63 lines
1.8 KiB
Groovy
63 lines
1.8 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id("org.jetbrains.gradle.plugin.idea-ext") version "1.0"
|
|
}
|
|
|
|
group 'marginalia'
|
|
version 'SNAPSHOT'
|
|
|
|
compileJava.options.encoding = "UTF-8"
|
|
compileTestJava.options.encoding = "UTF-8"
|
|
|
|
tasks.register('dist', Copy) {
|
|
from subprojects.collect { it.tasks.withType(Tar) }
|
|
into "$buildDir/dist"
|
|
|
|
doLast {
|
|
copy {
|
|
from tarTree("$buildDir/dist/converter-process.tar")
|
|
into "$projectDir/run/dist/"
|
|
}
|
|
copy {
|
|
from tarTree("$buildDir/dist/crawler-process.tar")
|
|
into "$projectDir/run/dist/"
|
|
}
|
|
copy {
|
|
from tarTree("$buildDir/dist/loader-process.tar")
|
|
into "$projectDir/run/dist/"
|
|
}
|
|
copy {
|
|
from tarTree("$buildDir/dist/website-adjacencies-calculator.tar")
|
|
into "$projectDir/run/dist/"
|
|
}
|
|
copy {
|
|
from tarTree("$buildDir/dist/crawl-job-extractor-process.tar")
|
|
into "$projectDir/run/dist/"
|
|
}
|
|
copy {
|
|
from tarTree("$buildDir/dist/index-construction-process.tar")
|
|
into "$projectDir/run/dist/"
|
|
}
|
|
}
|
|
}
|
|
idea {
|
|
module {
|
|
excludeDirs.add(file("$projectDir/run/model"))
|
|
excludeDirs.add(file("$projectDir/run/dist"))
|
|
excludeDirs.add(file("$projectDir/run/samples"))
|
|
excludeDirs.add(file("$projectDir/run/db"))
|
|
excludeDirs.add(file("$projectDir/run/logs"))
|
|
excludeDirs.add(file("$projectDir/run/install"))
|
|
excludeDirs.add(file("$projectDir/run/data"))
|
|
excludeDirs.add(file("$projectDir/run/conf"))
|
|
excludeDirs.add(file("$projectDir/run/vol"))
|
|
excludeDirs.add(file("$projectDir/run/test-data"))
|
|
}
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(20))
|
|
}
|
|
}
|