2023-03-04 13:19:01 +01:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id "io.freefair.lombok" version "5.3.3.3"
|
2023-03-06 18:32:13 +01:00
|
|
|
id 'application'
|
|
|
|
id 'com.palantir.docker' version '0.34.0'
|
2023-03-04 13:19:01 +01:00
|
|
|
id 'jvm-test-suite'
|
|
|
|
}
|
|
|
|
|
2023-03-06 18:32:13 +01:00
|
|
|
ext {
|
|
|
|
dockerImage='openjdk:17-alpine'
|
|
|
|
serviceJvmOpts='-Dservice-host=0.0.0.0 -ea -Dsmall-ram=true ${wmsa_jvm_param} -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=4000 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false'
|
|
|
|
serviceToolOpts='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5000'
|
|
|
|
chromeDriverVersion='93.0.4577.63'
|
|
|
|
}
|
|
|
|
|
2023-03-04 13:19:01 +01:00
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-06 18:32:13 +01:00
|
|
|
application {
|
|
|
|
mainClass = 'nu.marginalia.screenshot.ScreenshotCaptureToolMain'
|
|
|
|
applicationName = 'screenshot-capture-tool'
|
|
|
|
}
|
|
|
|
|
2023-03-04 13:19:01 +01:00
|
|
|
dependencies {
|
|
|
|
implementation project(':third-party')
|
|
|
|
implementation project(':common:model')
|
|
|
|
implementation project(':features:screenshots')
|
|
|
|
implementation project(':common:service')
|
|
|
|
|
|
|
|
implementation libs.lombok
|
|
|
|
annotationProcessor libs.lombok
|
|
|
|
implementation libs.bundles.slf4j
|
|
|
|
implementation libs.bundles.selenium
|
|
|
|
implementation libs.bundles.mariadb
|
|
|
|
implementation libs.notnull
|
|
|
|
implementation libs.commons.compress
|
|
|
|
implementation libs.commons.io
|
|
|
|
implementation libs.guice
|
|
|
|
|
|
|
|
testImplementation libs.bundles.slf4j.test
|
|
|
|
testImplementation libs.bundles.junit
|
|
|
|
testImplementation libs.mockito
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
|
|
|
task fastTests(type: Test) {
|
|
|
|
useJUnitPlatform {
|
|
|
|
excludeTags "slow"
|
|
|
|
}
|
|
|
|
}
|