2022-05-19 17:45:26 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2023-03-20 17:11:22 +01:00
|
|
|
id("org.jetbrains.gradle.plugin.idea-ext") version "1.0"
|
2022-05-19 17:45:26 +02:00
|
|
|
}
|
|
|
|
|
2023-03-04 13:19:01 +01:00
|
|
|
group 'marginalia'
|
2022-05-19 17:45:26 +02:00
|
|
|
version 'SNAPSHOT'
|
2023-03-04 13:19:01 +01:00
|
|
|
|
2022-05-19 17:45:26 +02:00
|
|
|
compileJava.options.encoding = "UTF-8"
|
|
|
|
compileTestJava.options.encoding = "UTF-8"
|
|
|
|
|
2023-07-11 17:08:43 +02:00
|
|
|
tasks.register('dist', Copy) {
|
2023-03-04 13:19:01 +01:00
|
|
|
from subprojects.collect { it.tasks.withType(Tar) }
|
|
|
|
into "$buildDir/dist"
|
2022-05-19 17:45:26 +02:00
|
|
|
|
2023-08-25 16:40:53 +02:00
|
|
|
// For local development, each processes that are to be triggerable
|
|
|
|
// from the control-service need to go here to end up somewhere the
|
|
|
|
// control-service can find them
|
|
|
|
|
2023-07-11 17:08:43 +02:00
|
|
|
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/"
|
|
|
|
}
|
2023-07-26 15:46:22 +02:00
|
|
|
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/"
|
|
|
|
}
|
2023-08-25 12:52:54 +02:00
|
|
|
copy {
|
|
|
|
from tarTree("$buildDir/dist/index-construction-process.tar")
|
|
|
|
into "$projectDir/run/dist/"
|
|
|
|
}
|
2023-07-11 17:08:43 +02:00
|
|
|
}
|
|
|
|
}
|
2023-03-20 17:11:22 +01:00
|
|
|
idea {
|
|
|
|
module {
|
2023-08-25 16:40:53 +02:00
|
|
|
// Exclude these directories from being indexed by IntelliJ
|
|
|
|
// as they tend to bring the IDE to its knees and use up all
|
|
|
|
// Inotify spots in a hurry
|
|
|
|
excludeDirs.add(file("$projectDir/run/backup"))
|
2023-03-20 17:11:22 +01:00
|
|
|
excludeDirs.add(file("$projectDir/run/model"))
|
2023-07-11 17:08:43 +02:00
|
|
|
excludeDirs.add(file("$projectDir/run/dist"))
|
2023-03-20 17:11:22 +01:00
|
|
|
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"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-19 17:45:26 +02:00
|
|
|
java {
|
|
|
|
toolchain {
|
2023-08-23 15:37:49 +02:00
|
|
|
languageVersion.set(JavaLanguageVersion.of(20))
|
2022-05-19 17:45:26 +02:00
|
|
|
}
|
|
|
|
}
|